Browse Source

cypress: add cy.wait(5000) after share view is opened

pull/2552/head
Wing-Kam Wong 3 years ago
parent
commit
b0d14bd0ea
  1. 2
      scripts/cypress/integration/common/4b_table_view_share.js
  2. 2
      scripts/cypress/integration/common/4e_form_view_share.js
  3. 2
      scripts/cypress/integration/common/4f_grid_view_share.js
  4. 2
      scripts/cypress/integration/common/4f_pg_grid_view_share.js
  5. 2
      scripts/cypress/integration/common/6f_attachments.js

2
scripts/cypress/integration/common/4b_table_view_share.js

@ -11,6 +11,8 @@ const generateLinkWithPwd = () => {
// .click(); // .click();
mainPage.shareView().click(); mainPage.shareView().click();
cy.wait(5000);
cy.snipActiveModal("Modal_ShareView"); cy.snipActiveModal("Modal_ShareView");
// enable checkbox & feed pwd, save // enable checkbox & feed pwd, save

2
scripts/cypress/integration/common/4e_form_view_share.js

@ -99,6 +99,8 @@ export const genTest = (apiType, dbType) => {
// .click(); // .click();
mainPage.shareView().click(); mainPage.shareView().click();
cy.wait(5000);
cy.snipActiveModal("Modal_ShareView"); cy.snipActiveModal("Modal_ShareView");
// copy link text, visit URL // copy link text, visit URL

2
scripts/cypress/integration/common/4f_grid_view_share.js

@ -22,6 +22,8 @@ export const genTest = (apiType, dbType) => {
// .click(); // .click();
mainPage.shareView().click(); mainPage.shareView().click();
cy.wait(5000);
// wait, as URL initially will be /undefined // wait, as URL initially will be /undefined
cy.getActiveModal() cy.getActiveModal()
.find(".share-link-box") .find(".share-link-box")

2
scripts/cypress/integration/common/4f_pg_grid_view_share.js

@ -22,6 +22,8 @@ export const genTest = (apiType, dbType) => {
// .click(); // .click();
mainPage.shareView().click(); mainPage.shareView().click();
cy.wait(5000);
// wait, as URL initially will be /undefined // wait, as URL initially will be /undefined
cy.getActiveModal() cy.getActiveModal()
.find(".share-link-box") .find(".share-link-box")

2
scripts/cypress/integration/common/6f_attachments.js

@ -68,6 +68,8 @@ export const genTest = (apiType, dbType) => {
// .click(); // .click();
mainPage.shareView().click(); mainPage.shareView().click();
cy.wait(5000);
// copy link text, visit URL // copy link text, visit URL
cy.getActiveModal() cy.getActiveModal()
.find(".share-link-box") .find(".share-link-box")

Loading…
Cancel
Save