Skip to content

Commit c769fe8

Browse files
committed
Cypress: Update comment menubar test to target menu selector
-Updated test selector to click `.cool-annotation-menu` instead of '.cool-annotation-menubar' since the menubar now contains multiple menu items ('.cool-annotation-menu' and '.cool-annotation-menu-edit'). Signed-off-by: Banobe Pascal <[email protected]> Change-Id: Id9b7bf4bd067308bab1d21adbc6611d8302594fd
1 parent dc59c9d commit c769fe8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

cypress_test/integration_tests/desktop/writer/track_changes_spec.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ describe(['tagdesktop', 'tagnextcloud', 'tagproxy'], 'Track Changes', function (
6161
cy.cGet('div.cool-annotation').should('have.length', 3);
6262

6363
cy.cGet('#comment-container-2').should('contain','some text1');
64-
cy.cGet('#comment-container-2 .cool-annotation-menubar').click();
64+
cy.cGet('#comment-container-2 .cool-annotation-menubar .cool-annotation-menu').click();
6565
cy.cGet('body').contains('.context-menu-item', 'Remove').click();
6666
cy.cGet('#comment-container-2').should('have.class','tracked-deleted-comment-show');
6767
cy.cGet('#comment-container-2').should('contain','some text1');
@@ -107,7 +107,7 @@ describe(['tagdesktop', 'tagnextcloud', 'tagproxy'], 'Track Changes', function (
107107
cy.cGet('div.cool-annotation').should('have.length', 3);
108108

109109
cy.cGet('#comment-container-2').should('contain','some text1');
110-
cy.cGet('#comment-container-2 .cool-annotation-menubar').click();
110+
cy.cGet('#comment-container-2 .cool-annotation-menubar .cool-annotation-menu').click();
111111
cy.cGet('body').contains('.context-menu-item', 'Remove').click();
112112
cy.cGet('#comment-container-2').should('have.class','tracked-deleted-comment-show');
113113
cy.cGet('#comment-container-2').should('contain','some text1');
@@ -167,7 +167,7 @@ describe(['tagdesktop', 'tagnextcloud', 'tagproxy'], 'Track Changes', function (
167167

168168
// undo removed comment
169169
cy.cGet('#comment-container-2').should('contain','some text1');
170-
cy.cGet('#comment-container-2 .cool-annotation-menubar').click();
170+
cy.cGet('#comment-container-2 .cool-annotation-menubar .cool-annotation-menu').click();
171171
cy.cGet('body').contains('.context-menu-item', 'Remove').click();
172172
cy.cGet('#comment-container-2').should('have.class','tracked-deleted-comment-show');
173173
cy.cGet('div.cool-annotation').should('have.length', 3);

0 commit comments

Comments
 (0)