|
@@ -17,7 +17,7 @@ context('Access to search result page', () => {
|
|
|
cy.getByTestid('search-result-list').should('be.visible');
|
|
cy.getByTestid('search-result-list').should('be.visible');
|
|
|
cy.getByTestid('search-result-content').should('be.visible');
|
|
cy.getByTestid('search-result-content').should('be.visible');
|
|
|
cy.get('#wiki').should('be.visible')
|
|
cy.get('#wiki').should('be.visible')
|
|
|
- // for avoid mismatch by auto auto scrolling
|
|
|
|
|
|
|
+ // for avoid mismatch by auto scrolling
|
|
|
cy.get('.search-result-content-body-container').scrollTo('top');
|
|
cy.get('.search-result-content-body-container').scrollTo('top');
|
|
|
cy.screenshot(`${ssPrefix}with-q`);
|
|
cy.screenshot(`${ssPrefix}with-q`);
|
|
|
});
|
|
});
|
|
@@ -29,7 +29,7 @@ context('Access to search result page', () => {
|
|
|
cy.getByTestid('search-result-list').should('be.visible');
|
|
cy.getByTestid('search-result-list').should('be.visible');
|
|
|
cy.getByTestid('search-result-content').should('be.visible');
|
|
cy.getByTestid('search-result-content').should('be.visible');
|
|
|
cy.get('#wiki').should('be.visible');
|
|
cy.get('#wiki').should('be.visible');
|
|
|
- // for avoid mismatch by auto auto scrolling
|
|
|
|
|
|
|
+ // for avoid mismatch by auto scrolling
|
|
|
cy.get('.search-result-content-body-container').scrollTo('top');
|
|
cy.get('.search-result-content-body-container').scrollTo('top');
|
|
|
|
|
|
|
|
cy.getByTestid('cb-select').first().click({force: true});
|
|
cy.getByTestid('cb-select').first().click({force: true});
|
|
@@ -103,7 +103,7 @@ context('Search all pages', () => {
|
|
|
cy.getByTestid('search-result-list').should('be.visible');
|
|
cy.getByTestid('search-result-list').should('be.visible');
|
|
|
cy.getByTestid('search-result-content').should('be.visible');
|
|
cy.getByTestid('search-result-content').should('be.visible');
|
|
|
cy.get('#wiki').should('be.visible')
|
|
cy.get('#wiki').should('be.visible')
|
|
|
- // for avoid mismatch by auto auto scrolling
|
|
|
|
|
|
|
+ // for avoid mismatch by auto scrolling
|
|
|
cy.get('.search-result-content-body-container').scrollTo('top');
|
|
cy.get('.search-result-content-body-container').scrollTo('top');
|
|
|
// force to add 'active' to pass VRT: https://github.com/weseek/growi/pull/6603
|
|
// 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.getByTestid('page-list-item-L').first().invoke('addClass', 'active');
|
|
@@ -112,7 +112,7 @@ context('Search all pages', () => {
|
|
|
cy.getByTestid('open-page-item-control-btn').eq(1).click();
|
|
cy.getByTestid('open-page-item-control-btn').eq(1).click();
|
|
|
cy.getByTestid('search-result-content').should('be.visible');
|
|
cy.getByTestid('search-result-content').should('be.visible');
|
|
|
cy.get('#wiki').should('be.visible')
|
|
cy.get('#wiki').should('be.visible')
|
|
|
- // for avoid mismatch by auto auto scrolling
|
|
|
|
|
|
|
+ // for avoid mismatch by auto scrolling
|
|
|
cy.get('.search-result-content-body-container').scrollTo('top');
|
|
cy.get('.search-result-content-body-container').scrollTo('top');
|
|
|
cy.screenshot(`${ssPrefix}4-click-three-dots-menu`, {capture: 'viewport'});
|
|
cy.screenshot(`${ssPrefix}4-click-three-dots-menu`, {capture: 'viewport'});
|
|
|
|
|
|
|
@@ -261,14 +261,14 @@ context('Search current tree with "prefix":', () => {
|
|
|
cy.getByTestid('search-result-list').should('be.visible');
|
|
cy.getByTestid('search-result-list').should('be.visible');
|
|
|
cy.getByTestid('search-result-content').should('be.visible');
|
|
cy.getByTestid('search-result-content').should('be.visible');
|
|
|
cy.get('#wiki').should('be.visible')
|
|
cy.get('#wiki').should('be.visible')
|
|
|
- // for avoid mismatch by auto auto scrolling
|
|
|
|
|
|
|
+ // for avoid mismatch by auto scrolling
|
|
|
cy.get('.search-result-content-body-container').scrollTo('top');
|
|
cy.get('.search-result-content-body-container').scrollTo('top');
|
|
|
cy.screenshot(`${ssPrefix}3-search-page-results`, { capture: 'viewport'});
|
|
cy.screenshot(`${ssPrefix}3-search-page-results`, { capture: 'viewport'});
|
|
|
|
|
|
|
|
cy.getByTestid('open-page-item-control-btn').first().click();
|
|
cy.getByTestid('open-page-item-control-btn').first().click();
|
|
|
cy.getByTestid('search-result-content').should('be.visible');
|
|
cy.getByTestid('search-result-content').should('be.visible');
|
|
|
cy.get('#wiki').should('be.visible')
|
|
cy.get('#wiki').should('be.visible')
|
|
|
- // for avoid mismatch by auto auto scrolling
|
|
|
|
|
|
|
+ // for avoid mismatch by auto scrolling
|
|
|
cy.get('.search-result-content-body-container').scrollTo('top');
|
|
cy.get('.search-result-content-body-container').scrollTo('top');
|
|
|
cy.screenshot(`${ssPrefix}4-click-three-dots-menu`, {capture: 'viewport'});
|
|
cy.screenshot(`${ssPrefix}4-click-three-dots-menu`, {capture: 'viewport'});
|
|
|
});
|
|
});
|