Skip to content

Commit

Permalink
feat(action): Enhancement goto option
Browse files Browse the repository at this point in the history
  • Loading branch information
1ilsang committed May 7, 2024
1 parent ec8a54c commit b7cf12f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions e2e/404.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ import { MACRO_SUITE } from './shared/constants';

test.describe('404', () => {
test('should redirect 404', async ({ page }) => {
await page.goto('/something_wrong_path');
// https://stackoverflow.com/a/78183950
await page.goto('/something_wrong_path', { waitUntil: 'domcontentloaded' });
await expect(page.getByText(/404 ERROR/)).toBeVisible();
});

Expand All @@ -13,7 +14,7 @@ test.describe('404', () => {
});

test(MACRO_SUITE.DOM_SNAPSHOT, async ({ page }) => {
await page.goto(`/404`);
await page.goto(`/404`, { waitUntil: 'domcontentloaded' });
await waitImages({ page });
const body = await page.locator('#__next').innerHTML();
expect(body).toMatchSnapshot([`404.html`]);
Expand Down

0 comments on commit b7cf12f

Please sign in to comment.