Skip to content

Commit 06d422a

Browse files
committed
fix(test): target first submit item
Signed-off-by: Enjeck C. <[email protected]>
1 parent 646c81b commit 06d422a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cypress/e2e/tables-sharing-link.cy.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,8 +95,8 @@ describe('Public link sharing', () => {
9595

9696
// Password Gate
9797
cy.get('input[type="password"]').should('be.visible').type(password)
98-
cy.get('button[type="submit"], input[type="submit"]').click()
99-
cy.get('[data-cy="publicTableElement"]').should('be.visible')
98+
cy.get('button[type="submit"], input[type="submit"]').filter(':visible').first().click()
99+
cy.get('[data-cy="publicTableElement"]').should('be.visible')
100100

101101
// Login again to delete share
102102
cy.login(localUser)

0 commit comments

Comments
 (0)