|
@@ -27,6 +27,7 @@ context('Modal for page operation', () => {
|
|
|
cy.screenshot(`${ssPrefix}-delete-modal`);
|
|
cy.screenshot(`${ssPrefix}-delete-modal`);
|
|
|
cy.getByTestid('delete-page-button').click();
|
|
cy.getByTestid('delete-page-button').click();
|
|
|
});
|
|
});
|
|
|
|
|
+
|
|
|
cy.getByTestid('trash-page-alert').should('be.visible');
|
|
cy.getByTestid('trash-page-alert').should('be.visible');
|
|
|
cy.collapseSidebar(true);
|
|
cy.collapseSidebar(true);
|
|
|
cy.screenshot(`${ssPrefix}-bootstrap4-is-in-garbage-box`);
|
|
cy.screenshot(`${ssPrefix}-bootstrap4-is-in-garbage-box`);
|
|
@@ -121,18 +122,18 @@ context('Page Accessories Modal', () => {
|
|
|
|
|
|
|
|
cy.visit('/');
|
|
cy.visit('/');
|
|
|
cy.collapseSidebar(true, true);
|
|
cy.collapseSidebar(true, true);
|
|
|
|
|
+ cy.waitUntilSkeletonDisappear();
|
|
|
|
|
|
|
|
cy.waitUntil(() => {
|
|
cy.waitUntil(() => {
|
|
|
// do
|
|
// do
|
|
|
- cy.getByTestid('grw-contextual-sub-nav').should('be.visible').within(() => {
|
|
|
|
|
- cy.getByTestid('open-page-item-control-btn').find('button').first().as('btn').click();
|
|
|
|
|
- });
|
|
|
|
|
- // wait until
|
|
|
|
|
- return cy.get('body').within(() => {
|
|
|
|
|
- return Cypress.$('.dropdown-menu.show').is(':visible');
|
|
|
|
|
|
|
+ cy.getByTestid('grw-contextual-sub-nav').within(() => {
|
|
|
|
|
+ cy.getByTestid('open-page-item-control-btn').find('button').click({force: true});
|
|
|
});
|
|
});
|
|
|
|
|
+ //wait until
|
|
|
|
|
+ return cy.getByTestid('page-item-control-menu').then($elem => $elem.is(':visible'))
|
|
|
});
|
|
});
|
|
|
|
|
|
|
|
|
|
+
|
|
|
});
|
|
});
|
|
|
|
|
|
|
|
it('Page History is shown successfully', () => {
|
|
it('Page History is shown successfully', () => {
|
|
@@ -210,7 +211,7 @@ context('Tag Oprations', { scrollBehavior: false }, () =>{
|
|
|
});
|
|
});
|
|
|
|
|
|
|
|
cy.get('.Toastify__toast').should('be.visible').trigger('mouseover');
|
|
cy.get('.Toastify__toast').should('be.visible').trigger('mouseover');
|
|
|
- cy.get('.grw-taglabels-container > .grw-tag-labels > a').contains(tag).should('exist');
|
|
|
|
|
|
|
+ cy.getByTestid('grw-tag-labels').contains(tag).should('exist');
|
|
|
|
|
|
|
|
cy.screenshot(`${ssPrefix}2-click-done`);
|
|
cy.screenshot(`${ssPrefix}2-click-done`);
|
|
|
});
|
|
});
|