|
@@ -11,15 +11,15 @@ context('Switch Sidebar content', () => {
|
|
|
it('PageTree is successfully shown', () => {
|
|
it('PageTree is successfully shown', () => {
|
|
|
cy.collapseSidebar(false);
|
|
cy.collapseSidebar(false);
|
|
|
cy.visit('/page');
|
|
cy.visit('/page');
|
|
|
|
|
+ cy.waitUntilSkeletonDisappear();
|
|
|
|
|
+
|
|
|
cy.getByTestid('grw-sidebar-nav-primary-page-tree').click();
|
|
cy.getByTestid('grw-sidebar-nav-primary-page-tree').click();
|
|
|
// eslint-disable-next-line cypress/no-unnecessary-waiting
|
|
// eslint-disable-next-line cypress/no-unnecessary-waiting
|
|
|
cy.wait(1500);
|
|
cy.wait(1500);
|
|
|
- cy.screenshot(`${ssPrefix}-pagetree-after-load`, { capture: 'viewport' });
|
|
|
|
|
|
|
+ cy.screenshot(`${ssPrefix}-pagetree-after-load`);
|
|
|
});
|
|
});
|
|
|
-
|
|
|
|
|
});
|
|
});
|
|
|
|
|
|
|
|
-
|
|
|
|
|
context('Modal for page operation', () => {
|
|
context('Modal for page operation', () => {
|
|
|
|
|
|
|
|
const ssPrefix = 'modal-for-page-operation-';
|
|
const ssPrefix = 'modal-for-page-operation-';
|
|
@@ -31,8 +31,11 @@ context('Modal for page operation', () => {
|
|
|
});
|
|
});
|
|
|
cy.collapseSidebar(true);
|
|
cy.collapseSidebar(true);
|
|
|
});
|
|
});
|
|
|
|
|
+
|
|
|
it("PageCreateModal is shown and closed successfully", () => {
|
|
it("PageCreateModal is shown and closed successfully", () => {
|
|
|
cy.visit('/');
|
|
cy.visit('/');
|
|
|
|
|
+ cy.waitUntilSkeletonDisappear();
|
|
|
|
|
+
|
|
|
cy.getByTestid('newPageBtn').click();
|
|
cy.getByTestid('newPageBtn').click();
|
|
|
|
|
|
|
|
cy.getByTestid('page-create-modal').should('be.visible').within(() => {
|
|
cy.getByTestid('page-create-modal').should('be.visible').within(() => {
|
|
@@ -40,11 +43,14 @@ context('Modal for page operation', () => {
|
|
|
cy.get('button.close').click();
|
|
cy.get('button.close').click();
|
|
|
|
|
|
|
|
});
|
|
});
|
|
|
- cy.screenshot(`${ssPrefix}page-create-modal-closed`, {capture: 'viewport'});
|
|
|
|
|
|
|
+ cy.screenshot(`${ssPrefix}page-create-modal-closed`);
|
|
|
});
|
|
});
|
|
|
|
|
+
|
|
|
it("Successfully Create Today's page", () => {
|
|
it("Successfully Create Today's page", () => {
|
|
|
const pageName = "Today's page";
|
|
const pageName = "Today's page";
|
|
|
cy.visit('/');
|
|
cy.visit('/');
|
|
|
|
|
+ cy.waitUntilSkeletonDisappear();
|
|
|
|
|
+
|
|
|
cy.getByTestid('newPageBtn').click();
|
|
cy.getByTestid('newPageBtn').click();
|
|
|
|
|
|
|
|
cy.getByTestid('page-create-modal').should('be.visible').within(() => {
|
|
cy.getByTestid('page-create-modal').should('be.visible').within(() => {
|
|
@@ -57,12 +63,22 @@ context('Modal for page operation', () => {
|
|
|
cy.get('.layout-root').should('not.have.class', 'editing');
|
|
cy.get('.layout-root').should('not.have.class', 'editing');
|
|
|
|
|
|
|
|
cy.getByTestid('grw-contextual-sub-nav').should('be.visible');
|
|
cy.getByTestid('grw-contextual-sub-nav').should('be.visible');
|
|
|
|
|
+
|
|
|
|
|
+ // eslint-disable-next-line cypress/no-unnecessary-waiting
|
|
|
|
|
+ cy.wait(300);
|
|
|
|
|
+
|
|
|
|
|
+ // Do not use "cy.waitUntilSkeletonDisappear()"
|
|
|
|
|
+ cy.get('.grw-skeleton').should('not.exist');
|
|
|
|
|
+
|
|
|
cy.screenshot(`${ssPrefix}create-today-page`);
|
|
cy.screenshot(`${ssPrefix}create-today-page`);
|
|
|
});
|
|
});
|
|
|
|
|
+
|
|
|
it('Successfully create page under specific path', () => {
|
|
it('Successfully create page under specific path', () => {
|
|
|
const pageName = 'child';
|
|
const pageName = 'child';
|
|
|
|
|
|
|
|
- cy.visit('/SandBox');
|
|
|
|
|
|
|
+ cy.visit('/Sandbox');
|
|
|
|
|
+ cy.waitUntilSkeletonDisappear();
|
|
|
|
|
+
|
|
|
cy.getByTestid('newPageBtn').click();
|
|
cy.getByTestid('newPageBtn').click();
|
|
|
|
|
|
|
|
cy.getByTestid('page-create-modal').should('be.visible').within(() => {
|
|
cy.getByTestid('page-create-modal').should('be.visible').within(() => {
|
|
@@ -75,12 +91,18 @@ context('Modal for page operation', () => {
|
|
|
cy.get('.layout-root').should('not.have.class', 'editing');
|
|
cy.get('.layout-root').should('not.have.class', 'editing');
|
|
|
|
|
|
|
|
cy.getByTestid('grw-contextual-sub-nav').should('be.visible');
|
|
cy.getByTestid('grw-contextual-sub-nav').should('be.visible');
|
|
|
|
|
+
|
|
|
|
|
+ // eslint-disable-next-line cypress/no-unnecessary-waiting
|
|
|
|
|
+ cy.wait(300);
|
|
|
|
|
+
|
|
|
|
|
+ // Do not use "cy.waitUntilSkeletonDisappear()"
|
|
|
|
|
+ cy.get('.grw-skeleton').should('not.exist');
|
|
|
|
|
+
|
|
|
cy.screenshot(`${ssPrefix}create-page-under-specific-page`);
|
|
cy.screenshot(`${ssPrefix}create-page-under-specific-page`);
|
|
|
});
|
|
});
|
|
|
|
|
|
|
|
it('Trying to create template page under the root page fail', () => {
|
|
it('Trying to create template page under the root page fail', () => {
|
|
|
cy.visit('/');
|
|
cy.visit('/');
|
|
|
-
|
|
|
|
|
cy.waitUntilSkeletonDisappear();
|
|
cy.waitUntilSkeletonDisappear();
|
|
|
|
|
|
|
|
cy.getByTestid('newPageBtn').click();
|
|
cy.getByTestid('newPageBtn').click();
|
|
@@ -94,7 +116,7 @@ context('Modal for page operation', () => {
|
|
|
cy.getByTestid('grw-btn-edit-page').should('be.visible').click();
|
|
cy.getByTestid('grw-btn-edit-page').should('be.visible').click();
|
|
|
});
|
|
});
|
|
|
cy.get('.toast-error').should('be.visible').invoke('attr', 'style', 'opacity: 1');
|
|
cy.get('.toast-error').should('be.visible').invoke('attr', 'style', 'opacity: 1');
|
|
|
- cy.screenshot(`${ssPrefix}create-template-for-children-error`, {capture: 'viewport'});
|
|
|
|
|
|
|
+ cy.screenshot(`${ssPrefix}create-template-for-children-error`);
|
|
|
cy.get('.toast-error').should('be.visible').click();
|
|
cy.get('.toast-error').should('be.visible').click();
|
|
|
cy.get('.toast-error').should('not.exist');
|
|
cy.get('.toast-error').should('not.exist');
|
|
|
|
|
|
|
@@ -104,11 +126,12 @@ context('Modal for page operation', () => {
|
|
|
cy.getByTestid('grw-btn-edit-page').should('be.visible').click();
|
|
cy.getByTestid('grw-btn-edit-page').should('be.visible').click();
|
|
|
});
|
|
});
|
|
|
cy.get('.toast-error').should('be.visible').invoke('attr', 'style', 'opacity: 1');
|
|
cy.get('.toast-error').should('be.visible').invoke('attr', 'style', 'opacity: 1');
|
|
|
- cy.screenshot(`${ssPrefix}create-template-for-descendants-error`, {capture: 'viewport'});
|
|
|
|
|
|
|
+ cy.screenshot(`${ssPrefix}create-template-for-descendants-error`);
|
|
|
});
|
|
});
|
|
|
|
|
|
|
|
it('PageDeleteModal is shown successfully', () => {
|
|
it('PageDeleteModal is shown successfully', () => {
|
|
|
cy.visit('/Sandbox/Bootstrap4');
|
|
cy.visit('/Sandbox/Bootstrap4');
|
|
|
|
|
+ cy.waitUntilSkeletonDisappear();
|
|
|
|
|
|
|
|
cy.get('#grw-subnav-container').within(() => {
|
|
cy.get('#grw-subnav-container').within(() => {
|
|
|
cy.getByTestid('open-page-item-control-btn').click({force: true});
|
|
cy.getByTestid('open-page-item-control-btn').click({force: true});
|
|
@@ -119,7 +142,8 @@ context('Modal for page operation', () => {
|
|
|
});
|
|
});
|
|
|
|
|
|
|
|
it('PageDuplicateModal is shown successfully', () => {
|
|
it('PageDuplicateModal is shown successfully', () => {
|
|
|
- cy.visit('/Sandbox/Bootstrap4', { });
|
|
|
|
|
|
|
+ cy.visit('/Sandbox/Bootstrap4');
|
|
|
|
|
+ cy.waitUntilSkeletonDisappear();
|
|
|
|
|
|
|
|
cy.get('#grw-subnav-container').within(() => {
|
|
cy.get('#grw-subnav-container').within(() => {
|
|
|
cy.getByTestid('open-page-item-control-btn').click({force: true});
|
|
cy.getByTestid('open-page-item-control-btn').click({force: true});
|
|
@@ -130,45 +154,49 @@ context('Modal for page operation', () => {
|
|
|
});
|
|
});
|
|
|
|
|
|
|
|
it('PageMoveRenameModal is shown successfully', () => {
|
|
it('PageMoveRenameModal is shown successfully', () => {
|
|
|
- cy.visit('/Sandbox/Bootstrap4', { });
|
|
|
|
|
|
|
+ cy.visit('/Sandbox/Bootstrap4');
|
|
|
|
|
+ cy.waitUntilSkeletonDisappear();
|
|
|
|
|
|
|
|
cy.get('#grw-subnav-container').within(() => {
|
|
cy.get('#grw-subnav-container').within(() => {
|
|
|
cy.getByTestid('open-page-item-control-btn').click({force: true});
|
|
cy.getByTestid('open-page-item-control-btn').click({force: true});
|
|
|
cy.getByTestid('open-page-move-rename-modal-btn').click({force: true});
|
|
cy.getByTestid('open-page-move-rename-modal-btn').click({force: true});
|
|
|
});
|
|
});
|
|
|
|
|
|
|
|
|
|
+ cy.getByTestid('grw-page-rename-button').should('be.disabled');
|
|
|
|
|
+
|
|
|
cy.getByTestid('page-rename-modal').should('be.visible').screenshot(`${ssPrefix}-rename-bootstrap4`);
|
|
cy.getByTestid('page-rename-modal').should('be.visible').screenshot(`${ssPrefix}-rename-bootstrap4`);
|
|
|
});
|
|
});
|
|
|
|
|
|
|
|
});
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
-context('Open presentation modal', () => {
|
|
|
|
|
|
|
+// TODO: Uncomment after https://redmine.weseek.co.jp/issues/103121 is resolved
|
|
|
|
|
+// context('Open presentation modal', () => {
|
|
|
|
|
|
|
|
- const ssPrefix = 'access-to-presentation-modal-';
|
|
|
|
|
|
|
+// const ssPrefix = 'access-to-presentation-modal-';
|
|
|
|
|
|
|
|
- beforeEach(() => {
|
|
|
|
|
- // login
|
|
|
|
|
- cy.fixture("user-admin.json").then(user => {
|
|
|
|
|
- cy.login(user.username, user.password);
|
|
|
|
|
- });
|
|
|
|
|
- cy.collapseSidebar(true);
|
|
|
|
|
- });
|
|
|
|
|
|
|
+// beforeEach(() => {
|
|
|
|
|
+// // login
|
|
|
|
|
+// cy.fixture("user-admin.json").then(user => {
|
|
|
|
|
+// cy.login(user.username, user.password);
|
|
|
|
|
+// });
|
|
|
|
|
+// cy.collapseSidebar(true);
|
|
|
|
|
+// });
|
|
|
|
|
|
|
|
- it('PresentationModal for "/" is shown successfully', () => {
|
|
|
|
|
- cy.visit('/');
|
|
|
|
|
|
|
+// it('PresentationModal for "/" is shown successfully', () => {
|
|
|
|
|
+// cy.visit('/');
|
|
|
|
|
|
|
|
- cy.get('#grw-subnav-container').within(() => {
|
|
|
|
|
- cy.getByTestid('open-page-item-control-btn').click({force: true});
|
|
|
|
|
- cy.getByTestid('open-presentation-modal-btn').click({force: true});
|
|
|
|
|
- });
|
|
|
|
|
|
|
+// cy.get('#grw-subnav-container').within(() => {
|
|
|
|
|
+// cy.getByTestid('open-page-item-control-btn').click({force: true});
|
|
|
|
|
+// cy.getByTestid('open-presentation-modal-btn').click({force: true});
|
|
|
|
|
+// });
|
|
|
|
|
|
|
|
- // eslint-disable-next-line cypress/no-unnecessary-waiting
|
|
|
|
|
- cy.wait(1500);
|
|
|
|
|
- cy.screenshot(`${ssPrefix}-open-top`);
|
|
|
|
|
- });
|
|
|
|
|
|
|
+// // eslint-disable-next-line cypress/no-unnecessary-waiting
|
|
|
|
|
+// cy.wait(1500);
|
|
|
|
|
+// cy.screenshot(`${ssPrefix}-open-top`);
|
|
|
|
|
+// });
|
|
|
|
|
|
|
|
-});
|
|
|
|
|
|
|
+// });
|
|
|
|
|
|
|
|
context('Page Accessories Modal', () => {
|
|
context('Page Accessories Modal', () => {
|
|
|
|
|
|
|
@@ -184,6 +212,8 @@ context('Page Accessories Modal', () => {
|
|
|
|
|
|
|
|
it('Page History is shown successfully', () => {
|
|
it('Page History is shown successfully', () => {
|
|
|
cy.visit('/Sandbox/Bootstrap4');
|
|
cy.visit('/Sandbox/Bootstrap4');
|
|
|
|
|
+ cy.waitUntilSkeletonDisappear();
|
|
|
|
|
+
|
|
|
cy.get('#grw-subnav-container').within(() => {
|
|
cy.get('#grw-subnav-container').within(() => {
|
|
|
cy.getByTestid('open-page-item-control-btn').within(() => {
|
|
cy.getByTestid('open-page-item-control-btn').within(() => {
|
|
|
cy.get('button.btn-page-item-control').click({force: true});
|
|
cy.get('button.btn-page-item-control').click({force: true});
|
|
@@ -194,22 +224,29 @@ context('Page Accessories Modal', () => {
|
|
|
cy.getByTestid('page-history').should('be.visible')
|
|
cy.getByTestid('page-history').should('be.visible')
|
|
|
cy.screenshot(`${ssPrefix}-open-page-history-bootstrap4`);
|
|
cy.screenshot(`${ssPrefix}-open-page-history-bootstrap4`);
|
|
|
});
|
|
});
|
|
|
|
|
+
|
|
|
it('Page Attachment Data is shown successfully', () => {
|
|
it('Page Attachment Data is shown successfully', () => {
|
|
|
- cy.visit('/Sandbox/Bootstrap4', { });
|
|
|
|
|
|
|
+ cy.visit('/Sandbox/Bootstrap4');
|
|
|
|
|
+ cy.waitUntilSkeletonDisappear();
|
|
|
|
|
+
|
|
|
cy.get('#grw-subnav-container').within(() => {
|
|
cy.get('#grw-subnav-container').within(() => {
|
|
|
|
|
+ cy.getByTestid('open-page-item-control-btn').should('be.visible');
|
|
|
cy.getByTestid('open-page-item-control-btn').within(() => {
|
|
cy.getByTestid('open-page-item-control-btn').within(() => {
|
|
|
- cy.getByTestid('open-page-item-control-btn').should('be.visible');
|
|
|
|
|
cy.get('button.btn-page-item-control').click({force: true});
|
|
cy.get('button.btn-page-item-control').click({force: true});
|
|
|
|
|
+ cy.getByTestid('page-item-control-menu').should('be.visible');
|
|
|
|
|
+ cy.getByTestid('open-page-accessories-modal-btn-with-attachment-data-tab').click();
|
|
|
});
|
|
});
|
|
|
- cy.getByTestid('open-page-accessories-modal-btn-with-attachment-data-tab').click();
|
|
|
|
|
});
|
|
});
|
|
|
|
|
|
|
|
cy.getByTestid('page-accessories-modal').should('be.visible')
|
|
cy.getByTestid('page-accessories-modal').should('be.visible')
|
|
|
cy.getByTestid('page-attachment').should('be.visible')
|
|
cy.getByTestid('page-attachment').should('be.visible')
|
|
|
cy.screenshot(`${ssPrefix}-open-page-attachment-data-bootstrap4`);
|
|
cy.screenshot(`${ssPrefix}-open-page-attachment-data-bootstrap4`);
|
|
|
});
|
|
});
|
|
|
|
|
+
|
|
|
it('Share Link Management is shown successfully', () => {
|
|
it('Share Link Management is shown successfully', () => {
|
|
|
- cy.visit('/Sandbox/Bootstrap4', { });
|
|
|
|
|
|
|
+ cy.visit('/Sandbox/Bootstrap4');
|
|
|
|
|
+ cy.waitUntilSkeletonDisappear();
|
|
|
|
|
+
|
|
|
cy.get('#grw-subnav-container').within(() => {
|
|
cy.get('#grw-subnav-container').within(() => {
|
|
|
cy.getByTestid('open-page-item-control-btn').within(() => {
|
|
cy.getByTestid('open-page-item-control-btn').within(() => {
|
|
|
cy.get('button.btn-page-item-control').click({force: true});
|
|
cy.get('button.btn-page-item-control').click({force: true});
|
|
@@ -222,10 +259,9 @@ context('Page Accessories Modal', () => {
|
|
|
cy.getByTestid('share-link-management').should('be.visible');
|
|
cy.getByTestid('share-link-management').should('be.visible');
|
|
|
cy.screenshot(`${ssPrefix}-open-share-link-management-bootstrap4`);
|
|
cy.screenshot(`${ssPrefix}-open-share-link-management-bootstrap4`);
|
|
|
});
|
|
});
|
|
|
-
|
|
|
|
|
});
|
|
});
|
|
|
|
|
|
|
|
-context('Tag Oprations', () =>{
|
|
|
|
|
|
|
+context('Tag Oprations', { scrollBehavior: false }, () =>{
|
|
|
|
|
|
|
|
beforeEach(() => {
|
|
beforeEach(() => {
|
|
|
// login
|
|
// login
|
|
@@ -238,6 +274,7 @@ context('Tag Oprations', () =>{
|
|
|
it('Successfully add new tag', () => {
|
|
it('Successfully add new tag', () => {
|
|
|
const ssPrefix = 'tag-operations-add-new-tag-'
|
|
const ssPrefix = 'tag-operations-add-new-tag-'
|
|
|
const tag = 'we';
|
|
const tag = 'we';
|
|
|
|
|
+
|
|
|
cy.visit('/Sandbox');
|
|
cy.visit('/Sandbox');
|
|
|
cy.waitUntilSkeletonDisappear();
|
|
cy.waitUntilSkeletonDisappear();
|
|
|
|
|
|
|
@@ -258,7 +295,7 @@ context('Tag Oprations', () =>{
|
|
|
cy.get('#tag-typeahead-asynctypeahead').should('be.visible');
|
|
cy.get('#tag-typeahead-asynctypeahead').should('be.visible');
|
|
|
cy.get('#tag-typeahead-asynctypeahead-item-0').should('be.visible');
|
|
cy.get('#tag-typeahead-asynctypeahead-item-0').should('be.visible');
|
|
|
cy.get('a#tag-typeahead-asynctypeahead-item-0').click({force: true})
|
|
cy.get('a#tag-typeahead-asynctypeahead-item-0').click({force: true})
|
|
|
- cy.screenshot(`${ssPrefix}3-insert-tag-name`, {capture: 'viewport'});
|
|
|
|
|
|
|
+ cy.screenshot(`${ssPrefix}3-insert-tag-name`);
|
|
|
});
|
|
});
|
|
|
|
|
|
|
|
cy.get('#edit-tag-modal').within(() => {
|
|
cy.get('#edit-tag-modal').within(() => {
|
|
@@ -266,17 +303,17 @@ context('Tag Oprations', () =>{
|
|
|
});
|
|
});
|
|
|
|
|
|
|
|
cy.get('.toast').should('be.visible').trigger('mouseover');
|
|
cy.get('.toast').should('be.visible').trigger('mouseover');
|
|
|
- cy.get('.grw-taglabels-container > .grw-tag-labels > a', { timeout: 10000 }).contains(tag).should('exist');
|
|
|
|
|
|
|
+ cy.get('.grw-taglabels-container > .grw-tag-labels > a').contains(tag).should('exist');
|
|
|
/* eslint-disable cypress/no-unnecessary-waiting */
|
|
/* eslint-disable cypress/no-unnecessary-waiting */
|
|
|
cy.wait(150); // wait for toastr to change its color occured by mouseover
|
|
cy.wait(150); // wait for toastr to change its color occured by mouseover
|
|
|
- cy.screenshot(`${ssPrefix}4-click-done`, {capture: 'viewport'});
|
|
|
|
|
-
|
|
|
|
|
|
|
+ cy.screenshot(`${ssPrefix}4-click-done`);
|
|
|
});
|
|
});
|
|
|
|
|
|
|
|
it('Successfully duplicate page by generated tag', () => {
|
|
it('Successfully duplicate page by generated tag', () => {
|
|
|
const ssPrefix = 'tag-operations-page-duplicate-';
|
|
const ssPrefix = 'tag-operations-page-duplicate-';
|
|
|
const tag = 'we';
|
|
const tag = 'we';
|
|
|
const newPageName = 'our';
|
|
const newPageName = 'our';
|
|
|
|
|
+
|
|
|
cy.visit('/Sandbox');
|
|
cy.visit('/Sandbox');
|
|
|
cy.waitUntilSkeletonDisappear();
|
|
cy.waitUntilSkeletonDisappear();
|
|
|
|
|
|
|
@@ -287,13 +324,16 @@ context('Tag Oprations', () =>{
|
|
|
});
|
|
});
|
|
|
});
|
|
});
|
|
|
});
|
|
});
|
|
|
|
|
+
|
|
|
|
|
+ // Search result page
|
|
|
cy.getByTestid('search-result-base').should('be.visible');
|
|
cy.getByTestid('search-result-base').should('be.visible');
|
|
|
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('#revision-loader').should('be.visible');
|
|
|
|
|
+
|
|
|
// 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');
|
|
|
- cy.screenshot(`${ssPrefix}1-click-tag-name`, {capture: 'viewport'});
|
|
|
|
|
|
|
+ cy.screenshot(`${ssPrefix}1-click-tag-name`);
|
|
|
cy.getByTestid('search-result-list').should('be.visible').then(($el)=>{
|
|
cy.getByTestid('search-result-list').should('be.visible').then(($el)=>{
|
|
|
cy.wrap($el).within(()=>{
|
|
cy.wrap($el).within(()=>{
|
|
|
cy.getByTestid('open-page-item-control-btn').first().click();
|
|
cy.getByTestid('open-page-item-control-btn').first().click();
|
|
@@ -301,7 +341,7 @@ context('Tag Oprations', () =>{
|
|
|
|
|
|
|
|
// eslint-disable-next-line cypress/no-unnecessary-waiting
|
|
// eslint-disable-next-line cypress/no-unnecessary-waiting
|
|
|
cy.wait(1500); // for wait rendering pagelist info
|
|
cy.wait(1500); // for wait rendering pagelist info
|
|
|
- cy.screenshot(`${ssPrefix}2-click-three-dots-menu`, {capture: 'viewport'});
|
|
|
|
|
|
|
+ cy.screenshot(`${ssPrefix}2-click-three-dots-menu`);
|
|
|
|
|
|
|
|
cy.wrap($el).within(()=>{
|
|
cy.wrap($el).within(()=>{
|
|
|
cy.getByTestid('open-page-item-control-btn').first().within(()=>{
|
|
cy.getByTestid('open-page-item-control-btn').first().within(()=>{
|
|
@@ -312,14 +352,15 @@ context('Tag Oprations', () =>{
|
|
|
|
|
|
|
|
cy.getByTestid('page-duplicate-modal').should('be.visible').within(() => {
|
|
cy.getByTestid('page-duplicate-modal').should('be.visible').within(() => {
|
|
|
cy.get('.rbt-input-main').type(`-${newPageName}`, {force: true});
|
|
cy.get('.rbt-input-main').type(`-${newPageName}`, {force: true});
|
|
|
- }).screenshot(`${ssPrefix}3-duplicate-page`, {capture: 'viewport'});
|
|
|
|
|
|
|
+ }).screenshot(`${ssPrefix}3-duplicate-page`);
|
|
|
|
|
|
|
|
cy.getByTestid('page-duplicate-modal').within(() => {
|
|
cy.getByTestid('page-duplicate-modal').within(() => {
|
|
|
cy.get('.modal-footer > button.btn').click();
|
|
cy.get('.modal-footer > button.btn').click();
|
|
|
});
|
|
});
|
|
|
|
|
+
|
|
|
cy.visit(`Sandbox-${newPageName}`);
|
|
cy.visit(`Sandbox-${newPageName}`);
|
|
|
cy.waitUntilSkeletonDisappear();
|
|
cy.waitUntilSkeletonDisappear();
|
|
|
- cy.screenshot(`${ssPrefix}4-duplicated-page`, {capture: 'viewport'});
|
|
|
|
|
|
|
+ cy.screenshot(`${ssPrefix}4-duplicated-page`);
|
|
|
});
|
|
});
|
|
|
|
|
|
|
|
it('Successfully rename page from generated tag', () => {
|
|
it('Successfully rename page from generated tag', () => {
|
|
@@ -330,14 +371,17 @@ context('Tag Oprations', () =>{
|
|
|
|
|
|
|
|
cy.visit('/Sandbox-our');
|
|
cy.visit('/Sandbox-our');
|
|
|
cy.waitUntilSkeletonDisappear();
|
|
cy.waitUntilSkeletonDisappear();
|
|
|
|
|
+
|
|
|
|
|
+ // Search result page
|
|
|
cy.get('.grw-tag-label').should('be.visible').contains(tag).click();
|
|
cy.get('.grw-tag-label').should('be.visible').contains(tag).click();
|
|
|
- cy.waitUntilSkeletonDisappear();
|
|
|
|
|
cy.getByTestid('search-result-base').should('be.visible');
|
|
cy.getByTestid('search-result-base').should('be.visible');
|
|
|
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('#revision-loader').should('be.visible');
|
|
|
|
|
+
|
|
|
// eslint-disable-next-line cypress/no-unnecessary-waiting
|
|
// eslint-disable-next-line cypress/no-unnecessary-waiting
|
|
|
cy.wait(300);
|
|
cy.wait(300);
|
|
|
- cy.screenshot(`${ssPrefix}1-click-tag-name`, {capture: 'viewport'});
|
|
|
|
|
|
|
+ cy.screenshot(`${ssPrefix}1-click-tag-name`);
|
|
|
|
|
|
|
|
cy.getByTestid('search-result-list').within(() => {
|
|
cy.getByTestid('search-result-list').within(() => {
|
|
|
cy.get('.list-group-item').each(($row) => {
|
|
cy.get('.list-group-item').each(($row) => {
|
|
@@ -376,11 +420,10 @@ context('Tag Oprations', () =>{
|
|
|
cy.get('.modal-footer > button').click();
|
|
cy.get('.modal-footer > button').click();
|
|
|
});
|
|
});
|
|
|
|
|
|
|
|
- cy.visit(`${newPageName}`);
|
|
|
|
|
|
|
+ cy.visit(newPageName);
|
|
|
cy.waitUntilSkeletonDisappear();
|
|
cy.waitUntilSkeletonDisappear();
|
|
|
|
|
|
|
|
cy.getByTestid('grw-tag-labels').should('be.visible')
|
|
cy.getByTestid('grw-tag-labels').should('be.visible')
|
|
|
- cy.screenshot(`${ssPrefix}4-new-page-name-applied`, {capture: 'viewport'});
|
|
|
|
|
|
|
+ cy.screenshot(`${ssPrefix}4-new-page-name-applied`);
|
|
|
});
|
|
});
|
|
|
-
|
|
|
|
|
});
|
|
});
|