Skip to content

Commit

Permalink
OZ-360: Added delay after 'starting patient visit' to prevent random …
Browse files Browse the repository at this point in the history
…test failures. (#41)
  • Loading branch information
kdaud authored Sep 21, 2023
1 parent dfee40d commit cae30a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion e2e/utils/functions/testBase.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,8 @@ export class HomePage {
await this.page.getByRole('button', { name: 'Start a visit' }).click();
await this.page.locator('label').filter({ hasText: 'Facility Visit' }).locator('span').first().click();
await this.page.locator('form').getByRole('button', { name: 'Start a visit' }).click();

await expect(this.page.getByText('Facility Visit started successfully')).toBeVisible();
await delay(4000);
}

async endPatientVisit() {
Expand Down

0 comments on commit cae30a2

Please sign in to comment.