Browse Source

test: use close active modal instead of esc

Signed-off-by: Raju Udava <86527202+dstala@users.noreply.github.com>
pull/3857/head
Raju Udava 2 years ago
parent
commit
7f08233b96
  1. 3
      scripts/cypress/integration/common/4f_grid_view_share.js
  2. 6
      scripts/cypress/integration/common/4f_pg_grid_view_share.js

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

@ -31,7 +31,8 @@ export const genTest = (apiType, dbType) => {
.find(".share-link-box")
.contains("/nc/view/", { timeout: 10000 })
.then(($obj) => {
cy.get("body").type("{esc}");
// cy.get("body").type("{esc}");
cy.closeActiveModal(".nc-modal-share-view");
// viewURL.push($obj.text())
viewURL[viewName] = $obj.text().trim();
});

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

@ -95,12 +95,10 @@ export const genTest = (apiType, dbType) => {
.find(".share-link-box")
.contains("/nc/view/", { timeout: 10000 })
.then(($obj) => {
cy.get("body").type("{esc}");
// viewURL.push($obj.text())
// cy.get("body").type("{esc}");
cy.closeActiveModal(".nc-modal-share-view");
viewURL[viewName] = $obj.text().trim();
});
cy.getActiveModal(".nc-modal-share-view").should("not.be.visible");
};
let clear;

Loading…
Cancel
Save