kaori 3 лет назад
Родитель
Сommit
58ad9cc89a

+ 12 - 1
packages/app/test/cypress/integration/20-basic-features/use-tools.spec.ts

@@ -306,9 +306,10 @@ context('Tag Oprations', () =>{
       cy.get('.list-group-item').each(($row) => {
         if($row.find('a').text() === oldPageName){
           cy.wrap($row).within(() => {
+            cy.getByTestid('open-page-item-control-btn').first().click();
             cy.getByTestid('page-item-control-menu').should('have.class', 'show').first().within(() => {
             // eslint-disable-next-line cypress/no-unnecessary-waiting
-            cy.wait(300);
+            cy.wait(1000);
             cy.screenshot(`${ssPrefix}2-open-page-item-control-menu`);
             cy.getByTestid('open-page-move-rename-modal-btn').click({force: true});
             })
@@ -317,6 +318,16 @@ context('Tag Oprations', () =>{
       });
     });
 
+    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({force: true});
+          });
+        }
+      });
+    });
+
     cy.getByTestid('page-rename-modal').should('be.visible').within(() => {
       cy.get('.rbt-input-main').clear().type(newPageName,{force: true});
     }).screenshot(`${ssPrefix}3-insert-new-page-name`);