Skip to content

Commit

Permalink
(test) Make patient banner locator more stable
Browse files Browse the repository at this point in the history
  • Loading branch information
denniskigen committed Aug 18, 2024
1 parent 34f1ad3 commit 751ad5c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions e2e/specs/register-new-patient.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ test('Register a new patient', async ({ page, api }) => {
expect(person.preferredAddress.country).toBe(formValues.country);
expect(person.attributes[0].display).toBe(formValues.phone);

await page.locator('main').waitFor();
await expect(page.getByRole('main')).toBeVisible();
await expect(page.getByRole('main')).toContainText(person.display);
await expect(page.getByRole('main')).toContainText(/male/i);
Expand Down

0 comments on commit 751ad5c

Please sign in to comment.