Shun Miyazawa hace 3 años
padre
commit
8ee8101afd

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

@@ -42,8 +42,12 @@ context('Access to page', () => {
   it('/Sandbox with edit is successfully loaded', () => {
     cy.visit('/Sandbox');
     cy.waitUntilSkeletonDisappear();
-    cy.get('#grw-subnav-container', { timeout: 30000 }).should('be.visible').within(()=>{
-      cy.getByTestid('editor-button', { timeout: 30000 }).should('be.visible').then((e) => { Cypress.$(e).click() })
+
+    cy.get('#grw-subnav-container', { timeout: 30000 }).should('be.visible').within(() => {
+
+      // eslint-disable-next-line cypress/no-unnecessary-waiting
+      cy.wait(2000);
+      cy.getByTestid('editor-button', { timeout: 30000 }).should('be.visible').click();
     })
     cy.getByTestid('navbar-editor', { timeout: 30000 }).should('be.visible');
     cy.screenshot(`${ssPrefix}-Sandbox-edit-page`);