Sfoglia il codice sorgente

add 'active' class

Yuken Tezuka 3 anni fa
parent
commit
904cd9d765

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

@@ -170,6 +170,8 @@ context('Search all pages', () => {
     cy.getByTestid('search-result-list').should('be.visible');
     cy.getByTestid('search-result-content').should('be.visible');
     cy.get('#wiki').should('be.visible');
+    // force to add 'active' to pass VRT: https://github.com/weseek/growi/pull/6603
+    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();