|
@@ -17,8 +17,9 @@ 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');
|
|
|
-
|
|
|
|
|
- cy.screenshot(`${ssPrefix}-with-q`);
|
|
|
|
|
|
|
+ // eslint-disable-next-line cypress/no-unnecessary-waiting
|
|
|
|
|
+ cy.wait(500); // wait for 500 ms for Scroll
|
|
|
|
|
+ cy.screenshot(`${ssPrefix}with-q`);
|
|
|
});
|
|
});
|
|
|
|
|
|
|
|
it('checkboxes behaviors', () => {
|
|
it('checkboxes behaviors', () => {
|
|
@@ -30,19 +31,19 @@ context('Access to search result page', () => {
|
|
|
cy.get('#wiki').should('be.visible');
|
|
cy.get('#wiki').should('be.visible');
|
|
|
|
|
|
|
|
cy.getByTestid('cb-select').first().click({force: true});
|
|
cy.getByTestid('cb-select').first().click({force: true});
|
|
|
- cy.screenshot(`${ssPrefix}-the-first-checkbox-on`);
|
|
|
|
|
|
|
+ cy.screenshot(`${ssPrefix}the-first-checkbox-on`);
|
|
|
cy.getByTestid('cb-select').first().click({force: true});
|
|
cy.getByTestid('cb-select').first().click({force: true});
|
|
|
- cy.screenshot(`${ssPrefix}-the-first-checkbox-off`);
|
|
|
|
|
|
|
+ cy.screenshot(`${ssPrefix}the-first-checkbox-off`);
|
|
|
|
|
|
|
|
// click select all checkbox
|
|
// click select all checkbox
|
|
|
cy.getByTestid('cb-select-all').click({force: true});
|
|
cy.getByTestid('cb-select-all').click({force: true});
|
|
|
- cy.screenshot(`${ssPrefix}-the-select-all-checkbox-1`);
|
|
|
|
|
|
|
+ cy.screenshot(`${ssPrefix}the-select-all-checkbox-1`);
|
|
|
cy.getByTestid('cb-select').first().click({force: true});
|
|
cy.getByTestid('cb-select').first().click({force: true});
|
|
|
- cy.screenshot(`${ssPrefix}-the-select-all-checkbox-2`);
|
|
|
|
|
|
|
+ cy.screenshot(`${ssPrefix}the-select-all-checkbox-2`);
|
|
|
cy.getByTestid('cb-select').first().click({force: true});
|
|
cy.getByTestid('cb-select').first().click({force: true});
|
|
|
- cy.screenshot(`${ssPrefix}-the-select-all-checkbox-3`);
|
|
|
|
|
|
|
+ cy.screenshot(`${ssPrefix}the-select-all-checkbox-3`);
|
|
|
cy.getByTestid('cb-select-all').click({force: true});
|
|
cy.getByTestid('cb-select-all').click({force: true});
|
|
|
- cy.screenshot(`${ssPrefix}-the-select-all-checkbox-4`);
|
|
|
|
|
|
|
+ cy.screenshot(`${ssPrefix}the-select-all-checkbox-4`);
|
|
|
});
|
|
});
|
|
|
|
|
|
|
|
});
|
|
});
|
|
@@ -66,7 +67,7 @@ context('Access to legacy private pages', () => {
|
|
|
|
|
|
|
|
cy.getByTestid('search-result-base').should('be.visible');
|
|
cy.getByTestid('search-result-base').should('be.visible');
|
|
|
|
|
|
|
|
- cy.screenshot(`${ssPrefix}-shown`);
|
|
|
|
|
|
|
+ cy.screenshot(`${ssPrefix}shown`);
|
|
|
});
|
|
});
|
|
|
|
|
|
|
|
});
|
|
});
|
|
@@ -101,9 +102,13 @@ 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');
|
|
|
|
|
+ // eslint-disable-next-line cypress/no-unnecessary-waiting
|
|
|
|
|
+ cy.wait(500); // wait for 500 ms for Scroll
|
|
|
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').eq(1).click();
|
|
cy.getByTestid('open-page-item-control-btn').eq(1).click();
|
|
|
|
|
+ // eslint-disable-next-line cypress/no-unnecessary-waiting
|
|
|
|
|
+ cy.wait(500); // wait for 500 ms for Scroll
|
|
|
cy.screenshot(`${ssPrefix}4-click-three-dots-menu`, {capture: 'viewport'});
|
|
cy.screenshot(`${ssPrefix}4-click-three-dots-menu`, {capture: 'viewport'});
|
|
|
|
|
|
|
|
//Add bookmark
|
|
//Add bookmark
|
|
@@ -162,9 +167,13 @@ 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');
|
|
|
-
|
|
|
|
|
|
|
+ // eslint-disable-next-line cypress/no-unnecessary-waiting
|
|
|
|
|
+ cy.wait(500); // wait for 500 ms for Scroll
|
|
|
cy.screenshot(`${ssPrefix}2-search-with-tag-result`, {capture: 'viewport'});
|
|
cy.screenshot(`${ssPrefix}2-search-with-tag-result`, {capture: 'viewport'});
|
|
|
|
|
+
|
|
|
cy.getByTestid('open-page-item-control-btn').first().click();
|
|
cy.getByTestid('open-page-item-control-btn').first().click();
|
|
|
|
|
+ // eslint-disable-next-line cypress/no-unnecessary-waiting
|
|
|
|
|
+ cy.wait(500); // wait for 500 ms for Scroll
|
|
|
cy.screenshot(`${ssPrefix}3-click-three-dots-menu-search-with-tag`, {capture: 'viewport'});
|
|
cy.screenshot(`${ssPrefix}3-click-three-dots-menu-search-with-tag`, {capture: 'viewport'});
|
|
|
|
|
|
|
|
});
|
|
});
|
|
@@ -177,6 +186,8 @@ 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');
|
|
|
|
|
+ // eslint-disable-next-line cypress/no-unnecessary-waiting
|
|
|
|
|
+ cy.wait(500); // wait for 500 ms for Scroll
|
|
|
cy.screenshot(`${ssPrefix}1-tag-order-click-tag-name`, {capture: 'viewport'});
|
|
cy.screenshot(`${ssPrefix}1-tag-order-click-tag-name`, {capture: 'viewport'});
|
|
|
|
|
|
|
|
cy.get('.grw-search-page-nav').within(() => {
|
|
cy.get('.grw-search-page-nav').within(() => {
|
|
@@ -188,6 +199,8 @@ 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');
|
|
|
|
|
+ // eslint-disable-next-line cypress/no-unnecessary-waiting
|
|
|
|
|
+ cy.wait(500); // wait for 500 ms for Scroll
|
|
|
cy.screenshot(`${ssPrefix}2-tag-order-by-relevance`);
|
|
cy.screenshot(`${ssPrefix}2-tag-order-by-relevance`);
|
|
|
|
|
|
|
|
cy.get('.grw-search-page-nav').within(() => {
|
|
cy.get('.grw-search-page-nav').within(() => {
|
|
@@ -199,6 +212,8 @@ 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');
|
|
|
|
|
+ // eslint-disable-next-line cypress/no-unnecessary-waiting
|
|
|
|
|
+ cy.wait(500); // wait for 500 ms for Scroll
|
|
|
cy.screenshot(`${ssPrefix}3-tag-order-by-creation-date`);
|
|
cy.screenshot(`${ssPrefix}3-tag-order-by-creation-date`);
|
|
|
|
|
|
|
|
cy.get('.grw-search-page-nav').within(() => {
|
|
cy.get('.grw-search-page-nav').within(() => {
|
|
@@ -210,6 +225,8 @@ 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');
|
|
|
|
|
+ // eslint-disable-next-line cypress/no-unnecessary-waiting
|
|
|
|
|
+ cy.wait(500); // wait for 500 ms for Scroll
|
|
|
cy.screenshot(`${ssPrefix}4-tag-order-by-last-update-date`);
|
|
cy.screenshot(`${ssPrefix}4-tag-order-by-last-update-date`);
|
|
|
});
|
|
});
|
|
|
|
|
|
|
@@ -244,9 +261,13 @@ 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');
|
|
|
|
|
+ // eslint-disable-next-line cypress/no-unnecessary-waiting
|
|
|
|
|
+ cy.wait(500); // wait for 500 ms for Scroll
|
|
|
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();
|
|
|
|
|
+ // eslint-disable-next-line cypress/no-unnecessary-waiting
|
|
|
|
|
+ cy.wait(500); // wait for 500 ms for Scroll
|
|
|
cy.screenshot(`${ssPrefix}4-click-three-dots-menu`, {capture: 'viewport'});
|
|
cy.screenshot(`${ssPrefix}4-click-three-dots-menu`, {capture: 'viewport'});
|
|
|
});
|
|
});
|
|
|
|
|
|