diff --git a/tests/test_model_config_api_keys.py b/tests/test_model_config_api_keys.py
index 1b592c555..acd565a45 100644
--- a/tests/test_model_config_api_keys.py
+++ b/tests/test_model_config_api_keys.py
@@ -222,16 +222,19 @@ def test_model_config_provider_switch_resets_custom_api_base():
assert '@change="model.api_base = \'\'"' in provider_select
-def test_model_config_vision_toggle_is_outside_advanced_settings():
+def test_model_config_primary_context_controls_are_outside_advanced_settings():
model_field_path = PROJECT_ROOT / "plugins" / "_model_config" / "webui" / "model-field.html"
content = model_field_path.read_text(encoding="utf-8")
vision_start = content.index('
Supports Vision
')
+ context_size_start = content.index('
Context window size
')
advanced_start = content.index("")
max_embeds_start = content.index('
Max embeds
')
assert content.count('
Supports Vision
') == 1
+ assert content.count('
Context window size
') == 1
assert vision_start < advanced_start
+ assert context_size_start < advanced_start
assert advanced_start < max_embeds_start