Преглед изворни кода

refactor collapseSidebar method

Yuken Tezuka пре 3 година
родитељ
комит
ed4e055f07
1 измењених фајлова са 0 додато и 5 уклоњено
  1. 0 5
      packages/app/test/cypress/support/commands.ts

+ 0 - 5
packages/app/test/cypress/support/commands.ts

@@ -46,11 +46,6 @@ Cypress.Commands.add('collapseSidebar', (isCollapsed, force=false) => {
     return;
   }
 
-  const isGrowiPage = Cypress.$('body').hasClass('growi');
-  if (!isGrowiPage) {
-    cy.visit('/page-to-toggle-sidebar-collapsed');
-  }
-
   cy.getByTestid('grw-contextual-navigation-sub').then(($contents) => {
     const isCurrentCollapsed = $contents.hasClass('d-none');
     // toggle when the current state and isCoolapsed is not match