Skip to content

Commit

Permalink
test(core): update header visual regression test (#1201)
Browse files Browse the repository at this point in the history
* test(core): update header snapshot

* test(core): wait for networkidle state in header test
  • Loading branch information
chanceaclark authored Aug 1, 2024
1 parent e8bf185 commit 880753c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion core/tests/visual-regression/components/header.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,9 @@ test('Header', async ({ page }) => {
// Act
const navigation = page.getByRole('navigation', { name: 'Main' });

await navigation.waitFor();
await page.waitForLoadState('networkidle');

// Assert
await expect(navigation).toBeInViewport();
await expect(navigation).toHaveScreenshot();
});
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 880753c

Please sign in to comment.