瀏覽代碼

revert diff to take another way to close sidebar

yohei0125 3 年之前
父節點
當前提交
d3510d97b8
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      packages/app/test/cypress/integration/20-basic-features/access-to-page.spec.ts

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

@@ -159,6 +159,8 @@ context('Access to /me/all-in-app-notifications', () => {
     cy.fixture("user-admin.json").then(user => {
       cy.login(user.username, user.password);
     });
+    // collapse sidebar
+    cy.collapseSidebar(true);
   });
 
   it('All In-App Notification list is successfully loaded', () => {
@@ -166,8 +168,6 @@ context('Access to /me/all-in-app-notifications', () => {
     cy.get('.notification-wrapper > 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.get('.grw-custom-nav-tab > div > ul > li:nth-child(2) > a').click();