mirror of
https://github.com/HKUDS/DeepTutor.git
synced 2026-12-03 20:11:38 +08:00
Align workspace validation with shared page layout
This commit is contained in:
@@ -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 == ""
|
||||
|
||||
|
||||
@@ -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/);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user