Yuki Takei 2 лет назад
Родитель
Сommit
71b62a2ce3

+ 2 - 1
apps/app/test/cypress/e2e/50-sidebar/50-sidebar--access-to-side-bar.cy.ts

@@ -36,8 +36,9 @@ describe('Access to sidebar', () => {
           });
           });
         });
         });
 
 
+        // TODO: rewrite test case with grw-switch-collapse-button
         it('Successfully collapse sidebar', () => {
         it('Successfully collapse sidebar', () => {
-          cy.getByTestid('grw-navigation-resize-button').click({force: true});
+          cy.getByTestid('grw-switch-collapse-button').click({force: true});
 
 
           cy.getByTestid('grw-contextual-navigation-child').should('not.be.visible');
           cy.getByTestid('grw-contextual-navigation-child').should('not.be.visible');
 
 

+ 1 - 1
apps/app/test/cypress/support/commands.ts

@@ -88,7 +88,7 @@ Cypress.Commands.add('collapseSidebar', (isCollapsed: boolean, waitUntilSaving =
 
 
     cy.waitUntil(() => {
     cy.waitUntil(() => {
       // do
       // do
-      cy.getByTestid("grw-navigation-resize-button").click({force: true});
+      cy.getByTestid("grw-switch-collapse-button").click({force: true});
       // wait until saving UserUISettings
       // wait until saving UserUISettings
       if (waitUntilSaving) {
       if (waitUntilSaving) {
         // eslint-disable-next-line cypress/no-unnecessary-waiting
         // eslint-disable-next-line cypress/no-unnecessary-waiting