diff --git a/apps/web/e2e/core-generation.spec.ts b/apps/web/e2e/core-generation.spec.ts index 06427acf1..ef3df6773 100755 --- a/apps/web/e2e/core-generation.spec.ts +++ b/apps/web/e2e/core-generation.spec.ts @@ -1,7 +1,9 @@ import { expect, test, type APIRequestContext } from "@playwright/test" import * as fs from "node:fs" import * as path from "node:path" +import { fileURLToPath } from "node:url" +const __dirname = path.dirname(fileURLToPath(import.meta.url)) const PASSWORD = "SmokePass123!" const apiBase = process.env.E2E_API_BASE || "/api/v1" const apiOrigin = apiBase.endsWith("/api/v1") ? apiBase.slice(0, -"/api/v1".length) : "" diff --git a/apps/web/e2e/core-upload.spec.ts b/apps/web/e2e/core-upload.spec.ts index e3ba3af49..9c036632d 100755 --- a/apps/web/e2e/core-upload.spec.ts +++ b/apps/web/e2e/core-upload.spec.ts @@ -1,7 +1,9 @@ import { expect, test, type APIRequestContext } from "@playwright/test" import * as fs from "node:fs" import * as path from "node:path" +import { fileURLToPath } from "node:url" +const __dirname = path.dirname(fileURLToPath(import.meta.url)) const PASSWORD = "SmokePass123!" const apiBase = process.env.E2E_API_BASE || "/api/v1" const apiOrigin = apiBase.endsWith("/api/v1") ? apiBase.slice(0, -"/api/v1".length) : ""