Skip to content

Commit

Permalink
Bump storybook test util timeout (#871)
Browse files Browse the repository at this point in the history
  • Loading branch information
askoufis committed Aug 24, 2023
1 parent 66291a6 commit 4ba0663
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion test-utils/storybook.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
*/
const getStorybookFrame = async (storybookUrl) => {
const page = await browser.newPage();
page.setDefaultNavigationTimeout(100_000);
await page.goto(storybookUrl, { waitUntil: 'networkidle2' });

const firstStoryButton = await page.waitForSelector(
Expand Down Expand Up @@ -40,7 +41,9 @@ const getTextContentFromStorybookFrame = async (
storybookFrame,
elementSelector,
) => {
const element = await storybookFrame.waitForSelector(elementSelector);
const element = await storybookFrame.waitForSelector(elementSelector, {
timeout: 100_000,
});

return element.evaluate((e) => ({
text: e.innerText,
Expand Down

0 comments on commit 4ba0663

Please sign in to comment.