Skip to content

Commit

Permalink
revert find() function
Browse files Browse the repository at this point in the history
  • Loading branch information
jenny-s51 committed Jan 8, 2025
1 parent 4c8a1ed commit 6845610
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,7 @@ export class Modal {
}
}

find(testId?: string): Cypress.Chainable<JQuery<HTMLElement>> {
// if (testId) {
// return cy.get(`[data-testid='${testId}']`);
// }
find(): Cypress.Chainable<JQuery<HTMLElement>> {
return cy.findByRole('dialog', { name: this.title });
}

Expand Down

0 comments on commit 6845610

Please sign in to comment.