1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
|
/* global describe it cy beforeEach require afterEach*/
var helper = require('../../common/helper');
var mobileHelper = require('../../common/mobile_helper');
var writerMobileHelper = require('./writer_mobile_helper');
describe('Insert formatting mark via insertion wizard.', function() {
var testFileName = 'insert_formatting_mark.odt';
beforeEach(function() {
helper.beforeAll(testFileName, 'writer');
// Click on edit button
mobileHelper.enableEditingMobile();
mobileHelper.openInsertionWizard();
// Open formatting marks
cy.contains('.menu-entry-with-icon.flex-fullwidth', 'Formatting Mark')
.click();
cy.get('.ui-content.level-0.mobile-wizard')
.should('be.visible');
});
afterEach(function() {
helper.afterAll(testFileName);
});
it('Insert non-breaking space.', function() {
cy.contains('.menu-entry-with-icon', 'Non-breaking space')
.click();
writerMobileHelper.selectAllMobile();
cy.get('#copy-paste-container p')
.should('contain.text', '\u00a0');
});
it('Insert non-breaking hyphen.', function() {
cy.contains('.menu-entry-with-icon', 'Non-breaking hyphen')
.click();
writerMobileHelper.selectAllMobile();
cy.get('#copy-paste-container p')
.should('contain.text', '\u2011');
});
it('Insert soft hyphen.', function() {
cy.contains('.menu-entry-with-icon', 'Soft hyphen')
.click();
writerMobileHelper.selectAllMobile();
cy.get('#copy-paste-container p')
.should('contain.text', '\u00ad');
});
it('Insert no-width optional break.', function() {
cy.contains('.menu-entry-with-icon', 'No-width optional break')
.click();
writerMobileHelper.selectAllMobile();
cy.get('#copy-paste-container p')
.should('contain.text', '\u200b');
});
it('Insert no-width no break.', function() {
cy.contains('.menu-entry-with-icon', 'No-width no break')
.click();
writerMobileHelper.selectAllMobile();
cy.get('#copy-paste-container p')
.should('contain.text', '\u2060');
});
it('Insert left-to-right mark.', function() {
cy.contains('.menu-entry-with-icon', 'Left-to-right mark')
.click();
writerMobileHelper.selectAllMobile();
cy.get('#copy-paste-container p')
.should('contain.text', '\u200e');
});
it('Insert right-to-left mark.', function() {
cy.contains('.menu-entry-with-icon', 'Right-to-left mark')
.click();
writerMobileHelper.selectAllMobile();
cy.get('#copy-paste-container p')
.should('contain.text', '\u200f');
});
});
|