diff --git a/tests/browser-capabilities/resumable-upload.spec.ts b/tests/browser-capabilities/resumable-upload.spec.ts index 3d84d0b0..a1c60946 100644 --- a/tests/browser-capabilities/resumable-upload.spec.ts +++ b/tests/browser-capabilities/resumable-upload.spec.ts @@ -2,9 +2,12 @@ import { createHash } from "node:crypto"; import type { Route } from "@playwright/test"; +import capabilitiesConfig from "../../playwright.capabilities.config.ts"; import { expect, test } from "../support/browser/strict-browser-test.ts"; -const PAGE_ORIGIN = "http://127.0.0.1:4174"; +// The page is served from the capability config's baseURL; a copy of its port +// here drifted silently whenever the config moved. +const PAGE_ORIGIN = new URL(capabilitiesConfig.use?.baseURL ?? "").origin; const API_ORIGIN = "https://upload-api.example.test"; const OBJECT_ORIGIN = "https://upload-objects.example.test"; const SESSION_ID = "session_browser_01";