Skip to content

Commit

Permalink
add fallback localhost
Browse files Browse the repository at this point in the history
  • Loading branch information
codingki committed Mar 21, 2024
1 parent b342639 commit ba48afa
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tests/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,7 @@ export async function expectPageLoaded(page: Page) {
height: 1080,
width: 1920,
});
// @ts-expect-error - playwright types are not up to date
await page.goto(process.env.PLAYWRIGHT_TEST_BASE_URL);
await page.goto(process.env.PLAYWRIGHT_TEST_BASE_URL || "http://localhost:3000");
await test.expect(page.getByRole("button", { name: "Cosmos Hub" })).toBeVisible({
timeout: 5000,
});
Expand Down

0 comments on commit ba48afa

Please sign in to comment.