Skip to content

Commit

Permalink
chore(e2e-tests): made post login check more thorough for lower power…
Browse files Browse the repository at this point in the history
…ed test runners

Signed-off-by: Manuel Zedel <manuel.zedel@northern.tech>
  • Loading branch information
mzedel committed Jun 12, 2024
1 parent 296b6ca commit f3cd87b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/e2e_tests/fixtures/fixtures.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,11 @@ const test = (process.env.TEST_ENVIRONMENT === 'staging' ? nonCoveredTest : cove
const page = await context.newPage();
await page.goto(`${baseUrl}ui/`);
await isLoggedIn(page);
const isHeaderComplete = await page.getByText(username).isVisible();
if (!isHeaderComplete) {
await page.reload();
await page.waitForSelector(`text=${username}`);
}
await use(page);
await context.storageState({ path: storagePath });
},
Expand Down

0 comments on commit f3cd87b

Please sign in to comment.