From 715d79c9b552014ab32284a7cb2c3c73cd1700b9 Mon Sep 17 00:00:00 2001 From: "2569718930@qq.com" <2569718930@qq.com> Date: Sun, 14 Jun 2026 06:56:11 +0800 Subject: [PATCH] Update deploy stability test for protected scan smoke --- .../scan-terminal/__tests__/deployStability.test.ts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/frontend/components/dashboard/scan-terminal/__tests__/deployStability.test.ts b/frontend/components/dashboard/scan-terminal/__tests__/deployStability.test.ts index 087f68ff..eefd444c 100644 --- a/frontend/components/dashboard/scan-terminal/__tests__/deployStability.test.ts +++ b/frontend/components/dashboard/scan-terminal/__tests__/deployStability.test.ts @@ -29,10 +29,11 @@ export function runTests() { "deploy script must wait for the local frontend before relying on Cloudflare/public smoke checks", ); assert( - deployScript.includes("wait_for_scan_terminal_ready") && + deployScript.includes("wait_for_scan_terminal_snapshot") && deployScript.includes("http://127.0.0.1:3001/api/scan/terminal") && - deployScript.includes('"status":"ready"'), - "deploy script must wait for the scan terminal snapshot to be ready so first users do not see initialization payloads", + deployScript.includes('"status":"ready"') && + deployScript.includes("http=401"), + "deploy script must wait for the scan terminal snapshot to be ready or protected before public warmup", ); assert( deployScript.includes("warm_public_route") &&