Skip to content

Commit

Permalink
Merge pull request #74 from c4dt/playwright
Browse files Browse the repository at this point in the history
test: add missing skip instructions
  • Loading branch information
PascalinDe authored Dec 11, 2023
2 parents 6cfb410 + 8314d64 commit 444d787
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions web/frontend/tests/navigation.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ test('Assert admin user HAR files are up-to-date', async({ page }) => {
// unauthenticated

test('Assert cookie is set', async({ page }) => {
test.skip(UPDATE === true, 'Do not run regular tests when updating HAR files');
const cookies = await page.context().cookies();
expect(cookies.find(cookie => cookie.name === 'connect.sid')).toBeTruthy();
});
Expand All @@ -69,6 +70,7 @@ test('Assert link to form table is present', async({ page }) => {
});

test('Assert "Login" button calls login API', async({ page }) => {
test.skip(UPDATE === true, 'Do not run regular tests when updating HAR files');
const loginRequest = page.waitForRequest(
new RegExp("/api/get_dev_login/[0-9]{6}")
);
Expand All @@ -85,6 +87,7 @@ test('Assert "Profile" button is visible upon logging in', async({ page }) => {
});

test('Assert "Logout" calls logout API', async({ page, baseURL }) => {
test.skip(UPDATE === true, 'Do not run regular tests when updating HAR files');
await mockLogout(page);
await logIn(page, SCIPER_USER);
const logoutRequestPromise = page.waitForRequest(
Expand Down

0 comments on commit 444d787

Please sign in to comment.