소스 검색

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