Skip to content

Commit

Permalink
Update byLabel
Browse files Browse the repository at this point in the history
Signed-off-by: Chandan Pinjani <[email protected]>
  • Loading branch information
cpinjani authored and juadk committed Feb 11, 2025
1 parent 8383b0e commit b29aba8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ Cypress.Commands.add("getBySel", (selector, ...args) => {

Cypress.Commands.add('byLabel', (label) => {
cy.get('.labeled-input')
.contains(label)
.contains(new RegExp(`^${label}`))
.siblings('input');
});

Expand Down

0 comments on commit b29aba8

Please sign in to comment.