jam411 3 лет назад
Родитель
Сommit
95c99b936f

+ 1 - 0
packages/app/test/cypress/integration/10-install/install.spec.ts

@@ -49,6 +49,7 @@ describe('Install', () => {
 
 
     // Redirects to the root page take a long time (more than 10000ms)
     // Redirects to the root page take a long time (more than 10000ms)
     cy.waitUntilSkeletonDisappear();
     cy.waitUntilSkeletonDisappear();
+    cy.getByTestid('grw-pagetree-item-container').should('be.visible');
     cy.screenshot(`${ssPrefix}-installed-redirect-to-root-page`, {
     cy.screenshot(`${ssPrefix}-installed-redirect-to-root-page`, {
       blackout: ['[data-hide-in-vrt=true]']
       blackout: ['[data-hide-in-vrt=true]']
     });
     });

+ 2 - 2
packages/app/test/cypress/integration/50-sidebar/access-to-side-bar.spec.ts

@@ -18,7 +18,7 @@ describe('Access to sidebar', () => {
 
 
       describe('Test show/collapse button', () => {
       describe('Test show/collapse button', () => {
         it('Successfully show sidebar', () => {
         it('Successfully show sidebar', () => {
-          cy.get('.grw-pagetree').should('be.visible');
+          cy.getByTestid('grw-pagetree-item-container').should('be.visible');
           cy.screenshot(`${ssPrefix}1-sidebar-shown`, {
           cy.screenshot(`${ssPrefix}1-sidebar-shown`, {
             capture: 'viewport',
             capture: 'viewport',
             // Blackout for recalculation of toc content hight
             // Blackout for recalculation of toc content hight
@@ -39,7 +39,7 @@ describe('Access to sidebar', () => {
       describe('Test page tree tab', () => {
       describe('Test page tree tab', () => {
         it('Successfully access to page tree', () => {
         it('Successfully access to page tree', () => {
           cy.getByTestid('grw-contextual-navigation-sub').within(() => {
           cy.getByTestid('grw-contextual-navigation-sub').within(() => {
-            cy.get('.grw-pagetree').should('be.visible');
+            cy.getByTestid('grw-pagetree-item-container').should('be.visible');
             cy.screenshot(`${ssPrefix}page-tree-1-access-to-page-tree`);
             cy.screenshot(`${ssPrefix}page-tree-1-access-to-page-tree`);
           });
           });
         });
         });