Skip to content

Openverse is a search engine for openly-licensed media. This monorepo includes all application code.

Fix Storybook tests by waiting for URL instead of a port (#1137)

Olga Bulat46a19a5776e7
diff --git a/frontend/test/storybook/playwright.config.ts b/frontend/test/storybook/playwright.config.ts
index e2ca29a40..7eaecdbe1 100644
--- a/frontend/test/storybook/playwright.config.ts
+++ b/frontend/test/storybook/playwright.config.ts
@@ -13,7 +13,7 @@ const config: PlaywrightTestConfig = {
webServer: {
command: "pnpm storybook",
timeout: 60_000 * 5, // 5 minutes
- url: "http://localhost:54000/iframe.html?id=meta-focus--slim-filled",
+ url: "http://localhost:54000/iframe.html?id=introduction-openverse-ui--page",
reuseExistingServer: !process.env.CI || process.env.PWDEBUG === "1",
},
use: {