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 083c018 commit 474eacc
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .storybook/test-runner-jest.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { getJestConfig } from '@storybook/test-runner';
import { getJestConfig, waitForPageReady } from '@storybook/test-runner';
// The default Jest configuration comes from @storybook/test
module.exports = {
// The default Jest configuration comes from @storybook/test
Expand All @@ -7,5 +7,9 @@ module.exports = {
* to merge testRunnerConfig properties with your own
* @see https://jestjs.io/docs/configuration
*/
testTimeout: 60000,
testTimeout: 30000,

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

0 comments on commit 474eacc

Please sign in to comment.