|
|
@@ -275,9 +275,14 @@ context('Tag Oprations', () =>{
|
|
|
cy.screenshot(`${ssPrefix}1-click-tag-name`, {capture: 'viewport'});
|
|
|
|
|
|
cy.getByTestid('open-page-item-control-btn').first().click({force: true});
|
|
|
+ cy.getByTestid('page-item-control-menu').should('have.class', 'show').first().within(() => {
|
|
|
// eslint-disable-next-line cypress/no-unnecessary-waiting
|
|
|
- cy.wait(1500); // for wait rendering pagelist info
|
|
|
- cy.screenshot(`${ssPrefix}2-click-three-dots-menu`, {capture: 'viewport'});
|
|
|
+ cy.wait(300);
|
|
|
+ cy.screenshot(`${ssPrefix}2-open-page-item-control-menu`);
|
|
|
+ });
|
|
|
+ // eslint-disable-next-line cypress/no-unnecessary-waiting
|
|
|
+ // cy.wait(1500);
|
|
|
+ // cy.screenshot(`${ssPrefix}2-click-three-dots-menu`, {capture: 'viewport'});
|
|
|
|
|
|
cy.getByTestid('open-page-duplicate-modal-btn').first().click({force: true});
|
|
|
cy.getByTestid('page-duplicate-modal').should('be.visible');
|
|
|
@@ -316,17 +321,13 @@ context('Tag Oprations', () =>{
|
|
|
}
|
|
|
});
|
|
|
});
|
|
|
- cy.screenshot(`${ssPrefix}2-click-three-dots-menu`, {capture: 'viewport'});
|
|
|
-
|
|
|
- cy.getByTestid('search-result-list').within(() => {
|
|
|
- cy.get('.list-group-item').each(($row) => {
|
|
|
- if($row.find('a').text() === oldPageName){
|
|
|
- cy.wrap($row).within(() => {
|
|
|
- cy.getByTestid('open-page-move-rename-modal-btn').click();
|
|
|
+ cy.screenshot(`${ssPrefix}2-click-three-dots-menooo`, {capture: 'viewport'});
|
|
|
+ cy.getByTestid('page-item-control-menu').should('have.class', 'show').first().within(() => {
|
|
|
+ // eslint-disable-next-line cypress/no-unnecessary-waiting
|
|
|
+ cy.wait(300);
|
|
|
+ cy.screenshot(`${ssPrefix}2-open-page-item-control-menu`);
|
|
|
});
|
|
|
- }
|
|
|
- });
|
|
|
- });
|
|
|
+
|
|
|
|
|
|
cy.getByTestid('page-rename-modal').should('be.visible').within(() => {
|
|
|
cy.get('.rbt-input-main').clear().type(newPageName,{force: true});
|