Skip to content

Commit ffa96b9

Browse files
TASK AS/AJ Update snapshot tests to wait for Log out link
1 parent cac59d7 commit ffa96b9

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

e2e/snapshot/app.snapshot.spec.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ const testPageSnapshot = async (
1414
) => {
1515
const screenshotPath: string = pathForCustomScreenshots(testFileName, snapshotFileName, projectName);
1616
await page.goto(pageRoute);
17+
await page.getByRole("link", { name: "Log out" }).waitFor();
1718

1819
if ([RSV_PAGE_URL, RSV_PREGNANCY_PAGE_URL].includes(pageRoute)) {
1920
await openExpanders(page);

e2e/snapshot/eligibility.snapshot.spec.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ test.describe("Snapshot Testing - Eligibility", () => {
1818
const customScreenshotPath = pathForCustomScreenshots(testFileName, screenshotFileName, projectName);
1919

2020
await page.goto(RSV_PAGE_URL);
21+
await page.getByRole("link", { name: "Log out" }).waitFor();
2122
await openExpanders(page);
2223

2324
await page.screenshot({

0 commit comments

Comments
 (0)