jam411 3 лет назад
Родитель
Сommit
50c46081c4

+ 3 - 3
packages/app/test/cypress/integration/20-basic-features/click-page-icons.spec.ts

@@ -77,10 +77,10 @@ context('Click page icons button', () => {
 
   it('Successfully display list of "seen by user"', () => {
     cy.visit('/Sandbox');
-    cy.get('#grw-subnav-container').within(() => {
-      cy.get('#btn-seen-user').click({force: true});
+    cy.get('#grw-subnav-container').should('be.visible').within(() => {
+      cy.get('div.grw-seen-user-info > button#btn-seen-user').should('be.visible').click({force: true});
     });
-    cy.get('.user-list-popover').should('be.visible');
+    cy.get('body > div:nth-of-type(4) > div > div > div > div.user-list-popover').should('be.visible');
 
     cy.get('#grw-subnav-container').within(() => {
       cy.screenshot(`${ssPrefix}11-seen-user-list`);

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

@@ -178,11 +178,12 @@ context('Page Accessories Modal', () => {
   it('Page History is shown successfully', () => {
      cy.visit('/Sandbox/Bootstrap4', {  });
      cy.get('#grw-subnav-container').within(() => {
-       cy.getByTestid('open-page-item-control-btn').click();
-       cy.getByTestid('open-page-accessories-modal-btn-with-history-tab').click();
+      cy.getByTestid('open-page-item-control-btn').within(() => {
+        cy.get('button.btn-page-item-control').click({force: true});
+      });
+      cy.getByTestid('open-page-accessories-modal-btn-with-history-tab').click({force: true});
     });
 
-     cy.getByTestid('page-accessories-modal').should('be.visible')
      cy.getByTestid('page-history').should('be.visible')
      cy.screenshot(`${ssPrefix}-open-page-history-bootstrap4`);
   });