Skip to content

DeepTutor: Lifelong Personalized Tutoring. https://deeptutor.info/.

Align workspace validation with shared page layout

Bingxi Zhao (Frank)be13dfd0259f
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, /<PageContainer/);
+ assert.match(pageLayout, /min-w-0[^\"]*px-6 md:px-9/);
assert.match(toolbar, /flex flex-wrap/);
});