Yohei-Shiina 3 лет назад
Родитель
Сommit
8367670bc9
1 измененных файлов с 12 добавлено и 12 удалено
  1. 12 12
      packages/app/test/cypress/integration/20-basic-features/access-to-page.spec.ts

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

@@ -144,16 +144,16 @@ context('Access to Template Editing Mode', () => {
 
 
   it('Access to Template Editor mode for only child pages successfully', () => {
   it('Access to Template Editor mode for only child pages successfully', () => {
     cy.visit('/Sandbox/Bootstrap4', {  });
     cy.visit('/Sandbox/Bootstrap4', {  });
-    cy.get('#grw-subnav-container', { timeout: 30000 }).within(() => {
-      cy.getByTestid('open-page-item-control-btn', { timeout: 30000 }).should('be.visible').click();
-      cy.getByTestid('open-page-template-modal-btn', { timeout: 30000 }).should('be.visible').click();
+    cy.get('#grw-subnav-container').within(() => {
+      cy.getByTestid('open-page-item-control-btn').should('be.visible').click({ timeout: 60000 });
+      cy.getByTestid('open-page-template-modal-btn').should('be.visible').click({ timeout: 60000 });
     });
     });
 
 
     cy.getByTestid('page-template-modal').should('be.visible')
     cy.getByTestid('page-template-modal').should('be.visible')
     cy.screenshot(`${ssPrefix}-open-page-template-bootstrap4`);
     cy.screenshot(`${ssPrefix}-open-page-template-bootstrap4`);
-    cy.getByTestid('template-button-children', { timeout: 30000 }).should('be.visible').click();
-    cy.get('.grw-skelton', { timeout: 30000 }).should('not.exist').then(()=>{
-      cy.getByTestid('navbar-editor', { timeout: 30000 }).should('be.visible').then(()=>{
+    cy.getByTestid('template-button-children').should('be.visible').click({ timeout: 60000 });
+    cy.get('.grw-skelton').should('not.exist').then(()=>{
+      cy.getByTestid('navbar-editor').should('be.visible').then(()=>{
         cy.url().should('include', '/_template#edit');
         cy.url().should('include', '/_template#edit');
         cy.screenshot();
         cy.screenshot();
       })
       })
@@ -162,15 +162,15 @@ context('Access to Template Editing Mode', () => {
 
 
   it('Access to Template Editor mode including decendants successfully', () => {
   it('Access to Template Editor mode including decendants successfully', () => {
     cy.visit('/Sandbox/Bootstrap4', {  });
     cy.visit('/Sandbox/Bootstrap4', {  });
-    cy.get('#grw-subnav-container', { timeout: 30000 }).within(() => {
-      cy.getByTestid('open-page-item-control-btn', { timeout: 30000 }).should('be.visible').click();
-      cy.getByTestid('open-page-template-modal-btn', { timeout: 30000 }).should('be.visible').click();
+    cy.get('#grw-subnav-container').within(() => {
+      cy.getByTestid('open-page-item-control-btn').should('be.visible').click({ timeout: 60000 });
+      cy.getByTestid('open-page-template-modal-btn').should('be.visible').click({ timeout: 60000 });
     });
     });
 
 
     cy.getByTestid('page-template-modal').should('be.visible')
     cy.getByTestid('page-template-modal').should('be.visible')
-    cy.getByTestid('template-button-decendants').should('be.visible').click();
-    cy.get('.grw-skelton', { timeout: 30000 }).should('not.exist').then(()=>{
-      cy.getByTestid('navbar-editor', { timeout: 30000 }).should('be.visible').then(()=>{
+    cy.getByTestid('template-button-decendants').should('be.visible').click({ timeout: 60000 });
+    cy.get('.grw-skelton').should('not.exist').then(()=>{
+      cy.getByTestid('navbar-editor').should('be.visible').then(()=>{
         cy.url().should('include', '/__template#edit');
         cy.url().should('include', '/__template#edit');
         cy.screenshot();
         cy.screenshot();
       })
       })