From be13dfd0259f9faa038cf1a544583115303116ab Mon Sep 17 00:00:00 2001 From: "Bingxi Zhao (Frank)" <13051345080@163.com> Date: Wed, 7 Oct 2026 20:41:56 +0800 Subject: [PATCH] Align workspace validation with shared page layout --- tests/services/test_volcengine_voice.py | 5 +---- web/tests/wire-api-settings-contract.test.ts | 7 ++++++- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/tests/services/test_volcengine_voice.py b/tests/services/test_volcengine_voice.py index 167ab0a70..0fec89fc9 100644 --- a/tests/services/test_volcengine_voice.py +++ b/tests/services/test_volcengine_voice.py @@ -235,10 +235,7 @@ def test_qwen_audio_defaults_and_hints_match_the_selected_model(): assert options["voices"] == [] assert options["docs_url"].endswith("qwen-audio-tts-voice-list") assert "Beijing" in options["configuration_note"] - assert ( - resolve_tts_runtime_config(catalog("dashscope", "qwen-audio-3.0-tts-flash")).voice - == "" - ) + assert resolve_tts_runtime_config(catalog("dashscope", "qwen-audio-3.0-tts-flash")).voice == "" # Future Qwen-Audio models must not silently acquire Qwen3's Cherry voice. assert resolve_tts_runtime_config(catalog("dashscope", "qwen-audio-9.0-tts-plus")).voice == "" diff --git a/web/tests/wire-api-settings-contract.test.ts b/web/tests/wire-api-settings-contract.test.ts index 71162e483..d69a54dc8 100644 --- a/web/tests/wire-api-settings-contract.test.ts +++ b/web/tests/wire-api-settings-contract.test.ts @@ -60,11 +60,16 @@ test("wire API settings remain usable on narrow viewports", () => { const editor = readFileSync(EDITOR, "utf8"); const main = readFileSync(MAIN, "utf8"); const toolbar = readFileSync(TOOLBAR, "utf8"); + const pageLayout = readFileSync( + path.resolve(process.cwd(), "components/layout/FeaturePage.tsx"), + "utf8", + ); // The 1.6 settings UI uses provider cards and an inline editor instead of the old // sticky profile list. Profile fields stay one-column until the `sm` // breakpoint, and the shell keeps compact horizontal padding on phones. assert.match(editor, /grid gap-4 sm:grid-cols-2/); - assert.match(main, /px-5[^\"]*sm:px-10/); + assert.match(main, /