Przeglądaj źródła

close sidebar forcefully when accessing to in-app notification page

yohei0125 3 lat temu
rodzic
commit
611344f4ca

+ 2 - 2
packages/app/test/cypress/integration/20-basic-features/access-to-page.spec.ts

@@ -159,8 +159,6 @@ context('Access to /me/all-in-app-notifications', () => {
     cy.fixture("user-admin.json").then(user => {
     cy.fixture("user-admin.json").then(user => {
       cy.login(user.username, user.password);
       cy.login(user.username, user.password);
     });
     });
-    // collapse sidebar
-    cy.collapseSidebar(true);
   });
   });
 
 
   it('All In-App Notification list is successfully loaded', () => {
   it('All In-App Notification list is successfully loaded', () => {
@@ -168,6 +166,8 @@ context('Access to /me/all-in-app-notifications', () => {
     cy.get('.notification-wrapper > a').click();
     cy.get('.notification-wrapper > a').click();
     cy.get('.notification-wrapper > .dropdown-menu > a').click();
     cy.get('.notification-wrapper > .dropdown-menu > a').click();
 
 
+    cy.collapseSidebar(true, true); // The in-app notification page appears with the sidebar open so close it forcefully here
+
     cy.screenshot(`${ssPrefix}-see-all`, { capture: 'viewport' });
     cy.screenshot(`${ssPrefix}-see-all`, { capture: 'viewport' });
 
 
     cy.get('.grw-custom-nav-tab > div > ul > li:nth-child(2) > a').click();
     cy.get('.grw-custom-nav-tab > div > ul > li:nth-child(2) > a').click();