From 02a19bacdb896be5e0260697564caed6fe192d80 Mon Sep 17 00:00:00 2001 From: Wing-Kam Wong Date: Tue, 5 Jul 2022 13:15:55 +0800 Subject: [PATCH] cypress: add missing .first() to checkbox --- scripts/cypress/integration/common/4b_table_view_share.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/scripts/cypress/integration/common/4b_table_view_share.js b/scripts/cypress/integration/common/4b_table_view_share.js index c727df9d46..cecbafe499 100644 --- a/scripts/cypress/integration/common/4b_table_view_share.js +++ b/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");