Skip to content

Commit 2ad94c4

Browse files
Darshan-upadhyay1110eszkadev
authored andcommitted
update the id in cypress files
- updated the prev and next icon id in cypress files - this will be now consistent with the id we change in our last commit Signed-off-by: Darshan-upadhyay1110 <[email protected]> Change-Id: I1c6418536d94e5b4968d94fb4af12d4edc2b1b20
1 parent dcde0eb commit 2ad94c4

File tree

5 files changed

+22
-22
lines changed

5 files changed

+22
-22
lines changed

cypress_test/integration_tests/common/impress_helper.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -224,9 +224,9 @@ function changeSlide(changeNum,direction) {
224224

225225
var slideButton;
226226
if (direction === 'next') {
227-
slideButton = cy.cGet('#next-button');
227+
slideButton = cy.cGet('#nextpage-button');
228228
} else if (direction === 'previous') {
229-
slideButton = cy.cGet('#prev-button');
229+
slideButton = cy.cGet('#prevpage-button');
230230
}
231231
if (slideButton) {
232232
for (var n = 0; n < changeNum; n++) {

cypress_test/integration_tests/desktop/draw/navigator_spec.js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -52,27 +52,27 @@ describe.skip(['tagdesktop'], 'Scroll through document, insert/delete items', fu
5252
it('Jump to element. Document -> Navigator', function() {
5353
// Click some items in document, and check if Navigator will jump to it. (if the items row will be selected, and visible)
5454
// Risky: it clicks x,y coordinates, if scroll or layout change it may need to be changed
55-
cy.cGet('#toolbar-down #next').click();
55+
cy.cGet('#toolbar-down #nextpage').click();
5656
cy.cGet('body').click(600,360);
5757
checkIfItemSelectedAndVisible('Shape 6 (Text Frame \'Text3\')');
5858

59-
cy.cGet('#toolbar-down #next').click();
60-
cy.cGet('#toolbar-down #next').click();
59+
cy.cGet('#toolbar-down #nextpage').click();
60+
cy.cGet('#toolbar-down #nextpage').click();
6161
cy.cGet('body').click(370,270);
6262
checkIfItemSelectedAndVisible('Shape 1 (SVG)');
6363

64-
cy.cGet('#toolbar-down #prev').click();
64+
cy.cGet('#toolbar-down #prevpage').click();
6565
cy.cGet('body').click(355,435);
6666
// T2 is part of a group. The group will be selected in Navigator.
6767
checkIfItemExSelectedAndVisible('Shape 3 (Group object)');
6868

69-
cy.cGet('#toolbar-down #next').click();
69+
cy.cGet('#toolbar-down #nextpage').click();
7070
cy.cGet('body').click(500,520);
7171
checkIfItemSelectedAndVisible('Object 3');
7272

73-
cy.cGet('#toolbar-down #prev').click();
74-
cy.cGet('#toolbar-down #prev').click();
75-
cy.cGet('#toolbar-down #prev').click();
73+
cy.cGet('#toolbar-down #prevpage').click();
74+
cy.cGet('#toolbar-down #prevpage').click();
75+
cy.cGet('#toolbar-down #prevpage').click();
7676
cy.cGet('body').click(630,330);
7777
checkIfItemSelectedAndVisible('Shape 2 (Text Frame \'Some text\')');
7878
});

cypress_test/integration_tests/desktop/impress/navigator_spec.js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -52,27 +52,27 @@ describe.skip(['tagdesktop'], 'Scroll through document, insert/delete items', fu
5252
it('Jump to element. Document -> Navigator', function() {
5353
// Click some items in document, and check if Navigator will jump to it
5454
// Risky: it clicks x,y coordinates, if scroll or layout change it may need to be changed
55-
cy.cGet('#toolbar-down #next').click();
55+
cy.cGet('#toolbar-down #nextpage').click();
5656
cy.cGet('body').click(600,360);
5757
checkIfItemSelectedAndVisible('Shape 6 (Text Frame \'Text3\')');
5858

59-
cy.cGet('#toolbar-down #next').click();
60-
cy.cGet('#toolbar-down #next').click();
59+
cy.cGet('#toolbar-down #nextpage').click();
60+
cy.cGet('#toolbar-down #nextpage').click();
6161
cy.cGet('body').click(370,270);
6262
checkIfItemSelectedAndVisible('Shape 1 (SVG)');
6363

64-
cy.cGet('#toolbar-down #prev').click();
64+
cy.cGet('#toolbar-down #prevpage').click();
6565
cy.cGet('body').click(355,435);
6666
// T2 is part of a group. The group will be selected in Navigator.
6767
checkIfItemExSelectedAndVisible('Shape 3 (Group object)');
6868

69-
cy.cGet('#toolbar-down #next').click();
69+
cy.cGet('#toolbar-down #nextpage').click();
7070
cy.cGet('body').click(500,520); //Object 3
7171
checkIfItemSelectedAndVisible('Object 3');
7272

73-
cy.cGet('#toolbar-down #prev').click();
74-
cy.cGet('#toolbar-down #prev').click();
75-
cy.cGet('#toolbar-down #prev').click();
73+
cy.cGet('#toolbar-down #prevpage').click();
74+
cy.cGet('#toolbar-down #prevpage').click();
75+
cy.cGet('#toolbar-down #prevpage').click();
7676
cy.cGet('body').click(630,330); //Some text
7777
checkIfItemSelectedAndVisible('Shape 2 (Text Frame \'Some text\')');
7878
});

cypress_test/integration_tests/desktop/impress/statusbar_spec.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ describe(['tagdesktop', 'tagnextcloud', 'tagproxy'], 'Statubar tests.', function
1515

1616
it('Selected slide.', function() {
1717
cy.cGet('#SlideStatus').should('have.text', 'Slide 1 of 2');
18-
cy.cGet('#toolbar-down #next').click();
18+
cy.cGet('#toolbar-down #nextpage').click();
1919
cy.cGet('#SlideStatus').should('have.text', 'Slide 2 of 2');
20-
cy.cGet('#toolbar-down #prev').click();
20+
cy.cGet('#toolbar-down #prevpage').click();
2121
cy.cGet('#SlideStatus').should('have.text', 'Slide 1 of 2');
2222
});
2323

cypress_test/integration_tests/desktop/writer/statusbar_spec.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,10 @@ describe(['tagdesktop', 'tagnextcloud', 'tagproxy'], 'Statubar tests.', function
2727
cy.cGet('#menu-insert').click();
2828
cy.cGet('body').contains('#menu-insert li a', 'Page Break').click();
2929
desktopHelper.assertVisiblePage(1, 2, 2);
30-
cy.cGet('#toolbar-down #prev').click();
30+
cy.cGet('#toolbar-down #prevpage').click();
3131
desktopHelper.assertVisiblePage(1, 1, 2);
3232
desktopHelper.assertScrollbarPosition('vertical', 0, 10);
33-
cy.cGet('#toolbar-down #next').click();
33+
cy.cGet('#toolbar-down #nextpage').click();
3434
desktopHelper.assertVisiblePage(1, 2, 2);
3535
desktopHelper.assertScrollbarPosition('vertical',190, 205);
3636
});

0 commit comments

Comments
 (0)