Mudana-Grune 2 лет назад
Родитель
Сommit
88fc044202

+ 9 - 3
apps/app/test/cypress/integration/20-basic-features/20-basic-features--access-to-page.spec.ts

@@ -268,7 +268,9 @@ context('Access to Template Editing Mode', () => {
     });
 
     cy.get('body').within(() => {
-      cy.getByTestid('open-page-template-modal-btn').filter('.show').click({force: true});
+      cy.getByTestid('page-item-control-menu').filter('.show').within(() => {
+        cy.getByTestid('open-page-template-modal-btn').click({force: true});
+      });
     });
 
     cy.getByTestid('page-template-modal').should('be.visible');
@@ -302,7 +304,9 @@ context('Access to Template Editing Mode', () => {
     });
 
     cy.get('body').within(() => {
-      cy.getByTestid('open-page-template-modal-btn').filter('.show').click({force: true});
+      cy.getByTestid('page-item-control-menu').filter('.show').within(() => {
+        cy.getByTestid('open-page-template-modal-btn').click({force: true});
+      });
     });
 
     cy.getByTestid('page-template-modal').should('be.visible');
@@ -334,7 +338,9 @@ context('Access to Template Editing Mode', () => {
     });
 
     cy.get('body').within(() => {
-      cy.getByTestid('open-page-delete-modal-btn').filter('.show').click({force: true});
+      cy.getByTestid('page-item-control-menu').filter('.show').within(() => {
+        cy.getByTestid('open-page-delete-modal-btn').click({force: true});
+      });
     });
 
     cy.getByTestid('page-delete-modal').should('be.visible').within(() => {

+ 9 - 3
apps/app/test/cypress/integration/20-basic-features/20-basic-features--use-tools.spec.ts

@@ -141,7 +141,9 @@ context('Modal for page operation', () => {
     });
 
     cy.get('body').within(() => {
-      cy.getByTestid('open-page-delete-modal-btn').filter('.show').click({force: true});
+      cy.getByTestid('page-item-control-menu').filter('.show').within(() => {
+        cy.getByTestid('open-page-delete-modal-btn').click({force: true});
+      });
     });
 
     cy.getByTestid('page-delete-modal').should('be.visible').within(() => {
@@ -171,7 +173,9 @@ context('Modal for page operation', () => {
     });
 
     cy.get('body').within(() => {
-      cy.getByTestid('open-page-duplicate-modal-btn').filter('.show').click({force: true});
+      cy.getByTestid('page-item-control-menu').filter('.show').within(() => {
+        cy.getByTestid('open-page-duplicate-modal-btn').click({force: true});
+      });
     });
 
     cy.getByTestid('page-duplicate-modal').should('be.visible').screenshot(`${ssPrefix}-duplicate-bootstrap4`);
@@ -186,7 +190,9 @@ context('Modal for page operation', () => {
     });
 
     cy.get('body').within(() => {
-      cy.getByTestid('open-page-move-rename-modal-btn').filter('.show').click({force: true});
+      cy.getByTestid('page-item-control-menu').filter('.show').within(() => {
+        cy.getByTestid('open-page-move-rename-modal-btn').click({force: true});
+      });
     });
 
     cy.getByTestid('grw-page-rename-button').should('be.disabled');