Browse Source

cypress: add more options click & change switch to checkbox

pull/2552/head
Wing-Kam Wong 2 years ago
parent
commit
219422519f
  1. 3
      scripts/cypress/integration/common/4b_table_view_share.js

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

@ -14,8 +14,9 @@ const generateLinkWithPwd = () => {
cy.snipActiveModal("Modal_ShareView");
// enable checkbox & feed pwd, save
cy.getActiveModal().find('button:contains("More Options")').click();
cy.getActiveModal()
.find('[role="switch"][type="checkbox"]')
.find('[role="checkbox"][type="checkbox"]')
.click({ force: true });
cy.getActiveModal().find('input[type="password"]').type("1");

Loading…
Cancel
Save