test: Chat-Oberfläche als Chromium-Regressionstest, alte Browsertests repariert, JS-Tests in der CI (A8, #1195, #1196)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01GmHhg7qE8FdhchzsBrwgjZ
This commit is contained in:
@ -15,8 +15,9 @@ try{
|
||||
await b.goto(BASE+'/ui/chat'); await warte(1000);
|
||||
await frage('Erste Frage zum Scheduler');
|
||||
ok('Titel kommt zunächst aus der ersten Frage', /Erste Frage/.test(await titel()), await titel());
|
||||
const knopf=()=>b.eval(`(()=>{const k=[...document.querySelectorAll('#chat-liste li button')].find(x=>x.textContent==='Umbenennen'); if(!k) return false; k.click(); return true;})()`);
|
||||
ok('Knopf „Umbenennen“ vorhanden', await knopf());
|
||||
// Seit A5 (#1195) steht „Umbenennen“ im Menü hinter „…“ des Chats.
|
||||
const knopf=()=>b.eval(`(()=>{const li=document.querySelector('#chat-liste li.aktiv')||document.querySelector('#chat-liste li:not(.gruppe-titel)'); const m=li&&li.querySelector('.mehr'); if(!m) return false; m.click(); const k=[...document.querySelectorAll('#chat-liste .menue button')].find(x=>x.textContent==='Umbenennen'); if(!k) return false; k.click(); return true;})()`);
|
||||
ok('Menüpunkt „Umbenennen“ vorhanden', await knopf());
|
||||
await tippe('Nexus Architektur'); await taste('Enter');
|
||||
ok('Neuer Name steht in der Liste', (await titel())==='Nexus Architektur', await titel());
|
||||
// Escape ändert nichts
|
||||
|
||||
Reference in New Issue
Block a user