Yohei-Shiina 3 лет назад
Родитель
Сommit
e13d34a616
1 измененных файлов с 3 добавлено и 2 удалено
  1. 3 2
      packages/app/test/cypress/integration/30-search/search.spec.ts

+ 3 - 2
packages/app/test/cypress/integration/30-search/search.spec.ts

@@ -159,7 +159,9 @@ context('Search all pages', () => {
 
     // Add tag
     cy.get('#edit-tags-btn-wrapper-for-tooltip').as('edit-tag-tooltip').should('be.visible');
-    cy.get('@edit-tag-tooltip > a').click();
+    cy.get('@edit-tag-tooltip').within(()=>{
+      cy.get('a').should('be.visible').click();
+    })
     cy.get('#edit-tag-modal').as('tag-modal').should('be.visible');
 
     cy.get('@tag-modal').within(() => {
@@ -189,7 +191,6 @@ context('Search all pages', () => {
     cy.getByTestid('page-list-item-L').first().invoke('addClass', 'active');
     cy.screenshot(`${ssPrefix}2-search-with-tag-result`, {capture: 'viewport'});
 
-    cy.getByTestid('open-page-item-control-btn').first().click();
     cy.getByTestid('search-result-content').should('be.visible');
     cy.get('.wiki').should('be.visible');
     cy.screenshot(`${ssPrefix}3-click-three-dots-menu-search-with-tag`, {capture: 'viewport'});