From b87597fd6019eb2c78e53724e4469dc5b2d99547 Mon Sep 17 00:00:00 2001 From: Matt Gibson Date: Tue, 27 Jan 2026 13:47:45 -0800 Subject: [PATCH] Use playId set for worker --- libs/playwright-helpers/src/fixtures/auth.fixture.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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; }