From d498fb819094216d9953a8db83ddec14938d099d Mon Sep 17 00:00:00 2001 From: oxoxDev <164490987+oxoxDev@users.noreply.github.com> Date: Mon, 8 Jun 2026 19:50:23 +0530 Subject: [PATCH] fix(test): derive mcp-tab spec APP_VERSION from package.json (#3501) --- app/test/playwright/specs/mcp-tab-flow.spec.ts | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/app/test/playwright/specs/mcp-tab-flow.spec.ts b/app/test/playwright/specs/mcp-tab-flow.spec.ts index ab5116db5..83e91e8eb 100644 --- a/app/test/playwright/specs/mcp-tab-flow.spec.ts +++ b/app/test/playwright/specs/mcp-tab-flow.spec.ts @@ -8,7 +8,13 @@ */ import { expect, type Page, test } from '@playwright/test'; -const APP_VERSION = '0.57.18'; +import packageJson from '../../../package.json' with { type: 'json' }; + +// Derive from the build's real version, never hardcode. `update_version` feeds +// the bootCheck version-match gate; a stale literal makes the mock mismatch the +// app build, leaving BootCheckGate in "outdated" so `#root` never renders and +// the whole spec times out (the 0.57.18→0.57.19 bump blanked it this way). +const APP_VERSION = packageJson.version; // --------------------------------------------------------------------------- // Mock data