Elffuss BraidHub

utopia-ia/elffuss-code public

Tests: bugs and conversations close tabs with the .tab-x button

6de16ab turned the editor tab × into <button class="tab-x"> and 67e2551
did the same for the conversation tab ×. bugs.mjs and conversations.mjs
still clicked the old <b>, so both timed out at their first close and the
checks after it (empty state, history keeps a closed conversation, reopen,
delete, reload restore, 3D views) never ran. The app was fine.

Both suites pass in full on this tree.
Changeset7995a3deb41d35bd25e8c53ce505a88eafe6826148a0d88978ff3c1127901af4
AuthorKikoCis <kikocisneros@gmail.com> · 2026-10-10 19:18 +02:00
CommitterKikoCis <kikocisneros@gmail.com> · 2026-10-11 14:15 +02:00
Parents143eda9ec772

Browse the files at this changeset

2 files changed

modified tests/bugs.mjs +1 −1
@@ -17,7 +17,7 @@
1717 // ── Bug A ──
1818 await p.locator('#tree').getByText('README.md').first().click(); await p.waitForTimeout(700);
1919 ok('al abrir un fichero, sin estado vacío', await p.evaluate(()=>{const e=document.getElementById('editor-empty');return !e||getComputedStyle(e).display==='none';}));
20-await p.locator('#tabs-bar .tab b').first().click(); await p.waitForTimeout(500); // cerrar la pestaña
20+await p.locator('#tabs-bar .tab .tab-x').first().click(); await p.waitForTimeout(500); // cerrar la pestaña (su ✕ es un botón .tab-x)
2121 ok('al cerrar la última pestaña → estado vacío visible', await p.evaluate(()=>{const e=document.getElementById('editor-empty');return !!e && getComputedStyle(e).display!=='none';}));
2222
2323 // ── Bug B ── abrir/cerrar/alternar vistas varias veces
modified tests/conversations.mjs +1 −1
@@ -74,7 +74,7 @@
7474 // ---- cerrar pestaña NO borra: sigue en el Historial ----
7575 const tabCountBeforeClose = await p.locator('#conv-tabs .tab').count();
7676 const activeTitleBeforeClose = await p.locator('#conv-tabs .tab.active .tab-name').innerText();
77-await p.locator('#conv-tabs .tab.active b').click();
77+await p.locator('#conv-tabs .tab.active .tab-x').click(); // su ✕ es un botón .tab-x
7878 await p.waitForTimeout(200);
7979 ok('cerrar la pestaña activa la quita de la vista', await p.locator('#conv-tabs .tab').count() === tabCountBeforeClose - 1);
8080