Skip to content

Commit 8141832

Browse files
lpranameszkadev
authored andcommitted
cypress: added test for tab navigation for comment button
Signed-off-by: Pranam Lashkari <[email protected]> Change-Id: If756aa4b8fa369b13b32aad67b56faee86424ffe
1 parent 3e83753 commit 8141832

File tree

4 files changed

+49
-0
lines changed

4 files changed

+49
-0
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ test/samples/writer-edit.fodt
6161
test/samples/impress-edit.fodp
6262
test/samples/draw-edit.odg
6363
test/samples/calc-edit.ods
64+
cypress_test/test/data/presets/user/browsersetting.json
6465
test/fakesockettest
6566
test/unithttplib
6667
test/*.csv

cypress_test/integration_tests/desktop/calc/annotation_spec.js

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,22 @@ describe(['tagdesktop'], 'Annotation Tests', function() {
9595
calcHelper.assertNumberofSheets(2);
9696
cy.cGet('#comment-container-1').should('not.exist');
9797
});
98+
99+
it('Tab Nevigation', function() {
100+
desktopHelper.insertComment(undefined, false);
101+
102+
cy.cGet('.cool-annotation-autosavelabel').should('be.not.visible');
103+
cy.realPress('Tab');
104+
cy.cGet('.cool-annotation-autosavelabel').should('be.not.visible');
105+
cy.cGet('#annotation-cancel-new:focus-visible');
106+
107+
cy.realPress('Tab');
108+
cy.cGet('#annotation-save-new:focus-visible');
109+
cy.cGet('.cool-annotation-autosavelabel').should('be.not.visible');
110+
111+
cy.realPress('Tab');
112+
cy.cGet('.cool-annotation-autosavelabel').should('be.visible');
113+
});
98114
});
99115

100116
describe(['tagdesktop'], 'Annotation Autosave Tests', function() {

cypress_test/integration_tests/desktop/impress/annotation_spec.js

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,22 @@ describe(['tagdesktop'], 'Annotation Tests', function() {
5858
cy.cGet('#annotation-reply-1').click();
5959
cy.cGet('.cool-annotation-content > div').should('include.text','some reply text');
6060
});
61+
62+
it('Tab Nevigation', function() {
63+
desktopHelper.insertComment(undefined, false);
64+
65+
cy.cGet('.cool-annotation-autosavelabel').should('be.not.visible');
66+
cy.realPress('Tab');
67+
cy.cGet('.cool-annotation-autosavelabel').should('be.not.visible');
68+
cy.cGet('#annotation-cancel-new:focus-visible');
69+
70+
cy.realPress('Tab');
71+
cy.cGet('#annotation-save-new:focus-visible');
72+
cy.cGet('.cool-annotation-autosavelabel').should('be.not.visible');
73+
74+
cy.realPress('Tab');
75+
cy.cGet('.cool-annotation-autosavelabel').should('be.visible');
76+
});
6177
});
6278

6379
describe(['tagdesktop'], 'Collapsed Annotation Tests', function() {

cypress_test/integration_tests/desktop/writer/annotation_spec.js

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,22 @@ describe(['tagdesktop'], 'Annotation Tests', function() {
5656
cy.cGet('.cool-annotation-content-wrapper').should('not.exist');
5757
});
5858

59+
it('Tab Nevigation', function() {
60+
desktopHelper.insertComment(undefined, false);
61+
62+
cy.cGet('.cool-annotation-autosavelabel').should('be.not.visible');
63+
cy.realPress('Tab');
64+
cy.cGet('.cool-annotation-autosavelabel').should('be.not.visible');
65+
cy.cGet('#annotation-cancel-new:focus-visible');
66+
67+
cy.realPress('Tab');
68+
cy.cGet('#annotation-save-new:focus-visible');
69+
cy.cGet('.cool-annotation-autosavelabel').should('be.not.visible');
70+
71+
cy.realPress('Tab');
72+
cy.cGet('.cool-annotation-autosavelabel').should('be.visible');
73+
});
74+
5975
});
6076

6177
describe(['tagdesktop'], 'Collapsed Annotation Tests', function() {

0 commit comments

Comments
 (0)