diff --git a/libs/playwright-helpers/src/fixtures/auth.fixture.ts b/libs/playwright-helpers/src/fixtures/auth.fixture.ts index a697077a06c..f286b80dd54 100644 --- a/libs/playwright-helpers/src/fixtures/auth.fixture.ts +++ b/libs/playwright-helpers/src/fixtures/auth.fixture.ts @@ -14,6 +14,8 @@ import { extractTUpType } from "../scene-templates/scene-template"; import { addInitScriptForPlayId } from "./page-extension"; +import { playId } from "@bitwarden-playwright-test"; + const hostname = new URL(webServerBaseUrl).hostname; const dataDir = process.env.PLAYWRIGHT_DATA_DIR ?? "playwright-data"; // Ensure data directory exists @@ -87,7 +89,7 @@ export class AuthFixture { } const context = await this._browser.newContext(); const page = await context.newPage(); - await addInitScriptForPlayId(page, process.env.PLAY_ID!); + await addInitScriptForPlayId(page, playId); return page; }