Skip to content

Commit

Permalink
(test) Use an exact match for the close button locator
Browse files Browse the repository at this point in the history
  • Loading branch information
denniskigen committed Jun 10, 2024
1 parent fc00743 commit d8ac74d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion e2e/specs/return-to-patient-list.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ test('Return to patient list after navigating to visits page from the patient ch
});

await test.step('And I click on the `Close` button', async () => {
await page.getByRole('button', { name: 'Close' }).click();
await page.getByRole('button', { name: 'Close', exact: true }).click();
});

await test.step('Then I should be redirected back to the patient list', async () => {
Expand Down

0 comments on commit d8ac74d

Please sign in to comment.