Skip to content

Commit

Permalink
chore: try to fix test by waiting for page ready
Browse files Browse the repository at this point in the history
  • Loading branch information
adguernier committed Mar 28, 2024
1 parent 474eacc commit 5c1ec91
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .storybook/test-runner-jest.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { getJestConfig, waitForPageReady } from '@storybook/test-runner';
import { Page } from 'playwright';
// The default Jest configuration comes from @storybook/test
module.exports = {
// The default Jest configuration comes from @storybook/test
Expand All @@ -9,7 +10,7 @@ module.exports = {
*/
testTimeout: 30000,

async postVisit(page) {
async postVisit(page: Page) {
await waitForPageReady(page);
},
};

0 comments on commit 5c1ec91

Please sign in to comment.