diff --git a/web-admin/playwright.config.ts b/web-admin/playwright.config.ts index 64407771234..001d080ce73 100644 --- a/web-admin/playwright.config.ts +++ b/web-admin/playwright.config.ts @@ -6,6 +6,9 @@ const config: PlaywrightTestConfig = { port: 4173, timeout: 120_000, }, + use: { + baseURL: "http://localhost:4173", + }, }; export default config; diff --git a/web-admin/tests/test.spec.ts b/web-admin/tests/test.spec.ts index 9659235a3ef..68fc4fda847 100644 --- a/web-admin/tests/test.spec.ts +++ b/web-admin/tests/test.spec.ts @@ -2,8 +2,6 @@ import { expect } from "@playwright/test"; import { test } from "./setup/test"; test("Unauthenticated user can see the login page", async ({ page }) => { - await page.goto("http://localhost:3000/"); - await expect(page.getByText("Log in to Rill")).toBeVisible({ - timeout: 30_000, // TODO: It's slow because it's the vite dev server, not the built version - }); + await page.goto("/"); + await expect(page.getByText("Log in to Rill")).toBeVisible(); });