blob: 4d1d7fe0961c1c2ff7f1508bd7f2d89cdfbc8a71 (
plain)
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
|
/* global describe it cy require afterEach beforeEach */
var helper = require('../../common/helper');
describe('Delete Objects', function() {
var testFileName = 'delete_objects.ods';
beforeEach(function() {
helper.beforeAll(testFileName, 'calc');
});
afterEach(function() {
helper.afterAll(testFileName, this.currentTest.state);
});
it('Delete Text', function() {
helper.typeIntoDocument('text');
helper.selectAllText();
helper.expectTextForClipboard('text');
helper.typeIntoDocument('{del}');
helper.typeIntoDocument('{ctrl}a');
helper.textSelectionShouldNotExist();
});
it('Delete Shapes', function() {
cy.get('#toolbar-up > .w2ui-scroll-right').click();
cy.get('#tb_editbar_item_insertshapes')
.click()
.get('.col.w2ui-icon.symbolshapes')
.click();
cy.get('.leaflet-control-buttons-disabled path.leaflet-interactive')
.should('exist');
//delete
helper.typeIntoDocument('{del}');
cy.get('.leaflet-control-buttons-disabled path.leaflet-interactive')
.should('not.exist');
});
it('Delete Chart' , function() {
cy.get('#toolbar-up > .w2ui-scroll-right').click();
//insert
cy.get('#tb_editbar_item_insertobjectchart')
.click();
cy.get('.lokdialog_canvas').click();
helper.typeIntoDocument('{shift}{enter}');
cy.wait(2000);
cy.get('.leaflet-control-buttons-disabled path.leaflet-interactive')
.should('exist');
//delete
helper.typeIntoDocument('{del}');
cy.wait(2000);
cy.get('.leaflet-control-buttons-disabled path.leaflet-interactive')
.should('not.exist');
});
});
|