Browse Source

cypress: add missing .first() to checkbox

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

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

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

Loading…
Cancel
Save