fix: update E2E_BASE_URL and remove wait for timeout in login test for smoother execution

This commit is contained in:
tonyaellie
2025-09-03 22:09:55 +01:00
parent 642b7e8801
commit b239567c81
3 changed files with 2 additions and 3 deletions

View File

@@ -215,7 +215,7 @@ tasks:
- pnpm exec playwright install-deps
- pnpm exec playwright install
- sleep 30
- TEST_SHUTDOWN_API_SERVER=true pnpm exec playwright test -c ./test/playwright.config.ts {{ .CLI_ARGS }}
- TEST_SHUTDOWN_API_SERVER=true E2E_BASE_URL=http://localhost:7745 pnpm exec playwright test -c ./test/playwright.config.ts {{ .CLI_ARGS }}
pr:
desc: Runs all tasks required for a PR

View File

@@ -2,7 +2,6 @@ import { expect, test } from "@playwright/test";
test("valid login", async ({ page }) => {
await page.goto("/home");
await page.waitForTimeout(1000); // Wait for vue to load
await expect(page).toHaveURL("/");
await page.fill("input[type='text']", "demo@example.com");
await page.fill("input[type='password']", "demo");

View File

@@ -7,7 +7,7 @@ export default defineConfig({
retries: process.env.CI ? 2 : 1,
reporter: process.env.CI ? "blob" : "html",
use: {
baseURL: process.env.E2E_BASE_URL || "http://localhost:7745",
baseURL: process.env.E2E_BASE_URL || "http://localhost:3000",
trace: "on-all-retries",
video: "retry-with-video",
},