Skip to content

Commit

Permalink
Add baseURL
Browse files Browse the repository at this point in the history
  • Loading branch information
ericpgreen2 committed Dec 11, 2024
1 parent 5b08863 commit f332258
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
3 changes: 3 additions & 0 deletions web-admin/playwright.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ const config: PlaywrightTestConfig = {
port: 4173,
timeout: 120_000,
},
use: {
baseURL: "http://localhost:4173",
},
};

export default config;
6 changes: 2 additions & 4 deletions web-admin/tests/test.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();
});

0 comments on commit f332258

Please sign in to comment.