Browse Source

cypress: add wait before getting shareView

pull/2552/head
Wing-Kam Wong 2 years ago
parent
commit
7d0df7be60
  1. 6
      scripts/cypress/integration/common/4b_table_view_share.js
  2. 1
      scripts/cypress/support/page_objects/mainPage.js

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

@ -5,13 +5,9 @@ let storedURL = "";
let linkText = "";
const generateLinkWithPwd = () => {
// cy.get(".v-navigation-drawer__content > .container")
// .find(".v-list > .v-list-item")
// .contains("Share View")
// .click();
mainPage.shareView().click({ force: true });
cy.wait(5000);
cy.wait(3000);
cy.snipActiveModal("Modal_ShareView");

1
scripts/cypress/support/page_objects/mainPage.js

@ -245,6 +245,7 @@ export class _mainPage {
};
shareView = () => {
cy.wait(3000);
return cy.get(".nc-btn-share-view");
};

Loading…
Cancel
Save