|
@@ -15,13 +15,13 @@ context('Access Home', () => {
|
|
|
cy.getByTestid('grw-personal-dropdown').click();
|
|
cy.getByTestid('grw-personal-dropdown').click();
|
|
|
cy.getByTestid('grw-personal-dropdown').find('.dropdown-menu .btn-group > .btn-outline-secondary:eq(0)').click();
|
|
cy.getByTestid('grw-personal-dropdown').find('.dropdown-menu .btn-group > .btn-outline-secondary:eq(0)').click();
|
|
|
|
|
|
|
|
|
|
+ // eslint-disable-next-line cypress/no-unnecessary-waiting
|
|
|
|
|
+ cy.wait(2000); // wait for calcViewHeight and rendering
|
|
|
|
|
+
|
|
|
cy.get('.grw-skelton').should('not.exist');
|
|
cy.get('.grw-skelton').should('not.exist');
|
|
|
// for check download toc data
|
|
// for check download toc data
|
|
|
cy.get('.toc-link').should('be.visible');
|
|
cy.get('.toc-link').should('be.visible');
|
|
|
|
|
|
|
|
- // eslint-disable-next-line cypress/no-unnecessary-waiting
|
|
|
|
|
- cy.wait(2000); // wait for calcViewHeight and rendering
|
|
|
|
|
-
|
|
|
|
|
// same screenshot is taken in access-to-page.spec
|
|
// same screenshot is taken in access-to-page.spec
|
|
|
cy.screenshot(`${ssPrefix}-visit-home`);
|
|
cy.screenshot(`${ssPrefix}-visit-home`);
|
|
|
});
|
|
});
|