mirror of
https://github.com/sysadminsmedia/homebox.git
synced 2026-01-04 20:14:54 +01:00
fix: update E2E_BASE_URL and remove wait for timeout in login test for smoother execution
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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");
|
||||
|
||||
@@ -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",
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user