|
|
@@ -48,8 +48,6 @@ context('Access to search result page', () => {
|
|
|
|
|
|
});
|
|
|
|
|
|
-
|
|
|
-
|
|
|
context('Access to legacy private pages', () => {
|
|
|
const ssPrefix = 'access-to-legacy-private-pages-directly-';
|
|
|
|
|
|
@@ -108,6 +106,8 @@ context('Search all pages', () => {
|
|
|
cy.screenshot(`${ssPrefix}3-search-page-results`, { capture: 'viewport'});
|
|
|
|
|
|
cy.getByTestid('open-page-item-control-btn').eq(1).click();
|
|
|
+ cy.getByTestid('search-result-content').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-click-three-dots-menu`, {capture: 'viewport'});
|
|
|
@@ -168,16 +168,15 @@ 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');
|
|
|
- // 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.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.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'});
|
|
|
|
|
|
});
|
|
|
+
|
|
|
it('Successfully order page search results by tag', () => {
|
|
|
const tag = 'help';
|
|
|
|
|
|
@@ -187,8 +186,7 @@ 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');
|
|
|
- // 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.get('.grw-search-page-nav').within(() => {
|
|
|
@@ -200,8 +198,7 @@ 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');
|
|
|
- // 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.get('.grw-search-page-nav').within(() => {
|
|
|
@@ -213,8 +210,7 @@ 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');
|
|
|
- // 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.get('.grw-search-page-nav').within(() => {
|
|
|
@@ -226,8 +222,7 @@ 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');
|
|
|
- // 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`);
|
|
|
});
|
|
|
|
|
|
@@ -262,13 +257,11 @@ context('Search current tree with "prefix":', () => {
|
|
|
cy.getByTestid('search-result-list').should('be.visible');
|
|
|
cy.getByTestid('search-result-content').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.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.getByTestid('search-result-content').should('be.visible');
|
|
|
+ cy.get('#wiki').should('be.visible');
|
|
|
cy.screenshot(`${ssPrefix}4-click-three-dots-menu`, {capture: 'viewport'});
|
|
|
});
|
|
|
|