Skip to content

Commit

Permalink
[frontend] Test using getByRole instead of getByTestId
Browse files Browse the repository at this point in the history
  • Loading branch information
Bonsai8863 committed Apr 23, 2024
1 parent 26596c4 commit 20dce0f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export default class GroupingsPage {
}

getCreateButton() {
return this.page.getByTestId('CreateEntityControlledDial');
return this.page.getByRole('button', { name: 'Create' })
}

getItemFromList(name: string) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export default class ReportPage {
}

addNewReport() {
return this.page.getByTestId('CreateEntityControlledDial').click();
return this.page.getByRole('button', { name: 'Create' }).click();
}

closeNewreport() {
Expand Down

0 comments on commit 20dce0f

Please sign in to comment.