feat: Modell- und Denkstufenwahl im Eingabebereich (CHAT-02, #1122)

Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-20 08:06:53 +01:00
parent 518fb59f2a
commit d5d48f6310
3 changed files with 12 additions and 4 deletions

View File

@ -1516,6 +1516,15 @@ async fn chat_kopf_hat_persona_vor_der_modellwahl() {
assert!(seite.contains("id=\"chat-stimmen-popover\"") && seite.contains("id=\"chat-stimme\""));
let (_, _, js) = ui_get(&gw, "/ui/chat.js", Some(&cookie)).await;
assert!(js.contains("chat-stimme-vorschau") && js.contains("Dies ist eine Vorschau"));
// CHAT-02: Modell und Denkstufe stehen im Eingabebereich, nicht mehr im Kopf.
let eingabe = seite.find("chat-eingabe").expect("Eingabebereich fehlt");
let modell_pos = seite.find("id=\"chat-modell\"").expect("Modell fehlt");
let denk_pos = seite
.find("id=\"chat-denkstufe\"")
.expect("Denkstufe fehlt");
let senden = seite.find("id=\"chat-senden\"").expect("Senden fehlt");
assert!(eingabe < modell_pos && modell_pos < denk_pos && denk_pos < senden);
assert!(modell_pos > seite.find("id=\"chat-verlauf\"").unwrap());
}
#[tokio::test]