|
@@ -112,8 +112,8 @@ context('Access to any page', () => {
|
|
|
cy.waitUntil(() => {
|
|
cy.waitUntil(() => {
|
|
|
cy.getByTestid('grw-subnav-switcher').within(() => {
|
|
cy.getByTestid('grw-subnav-switcher').within(() => {
|
|
|
// cy.getByTestid('editor-button').should('be.visible').click();
|
|
// cy.getByTestid('editor-button').should('be.visible').click();
|
|
|
- cy.getByTestid('editor-button').as('editorButton').click()
|
|
|
|
|
- cy.get('@editorButton').should('be.visible')
|
|
|
|
|
|
|
+ cy.getByTestid('editor-button').as('editorButton').should('be.visible');
|
|
|
|
|
+ cy.get('@editorButton').click();
|
|
|
});
|
|
});
|
|
|
return cy.get('.layout-root').then($elem => $elem.hasClass('editing'));
|
|
return cy.get('.layout-root').then($elem => $elem.hasClass('editing'));
|
|
|
});
|
|
});
|