test: fix tool flow inherit url

This commit is contained in:
2026-10-04 11:24:11 +05:00
parent 260a738ce4
commit f40a7c89ae
2 changed files with 6 additions and 7 deletions
+6 -2
View File
@@ -175,8 +175,12 @@ test("blur: changing slider updates result image", async ({ page }) => {
await expect(resultImage(page)).not.toHaveAttribute("src", firstSource ?? "");
});
test("runs without Web Worker (fallback)", async ({ browser }) => {
const context = await browser.newContext();
test("runs without Web Worker (fallback)", async ({ browser }, testInfo) => {
// newContext() не наследует use.baseURL из конфига — пробрасываем явно,
// иначе относительный goto() в helpers не резолвится.
const context = await browser.newContext({
baseURL: testInfo.project.use.baseURL,
});
try {
await context.addInitScript(() => {
Object.defineProperty(window, "Worker", {