Align workspace validation with shared page layout

This commit is contained in:
Bingxi Zhao (Frank)
2026-10-07 20:42:07 +08:00
parent fb2065b6a9
commit be13dfd025
2 changed files with 7 additions and 5 deletions
+1 -4
View File
@@ -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 == ""
+6 -1
View File
@@ -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, /<PageContainer/);
assert.match(pageLayout, /min-w-0[^\"]*px-6 md:px-9/);
assert.match(toolbar, /flex flex-wrap/);
});