utopia-ia/elffuss-code public
Changesets · Branches · Tags · Compare
| Changeset | 7995a3deb41d35bd25e8c53ce505a88eafe6826148a0d88978ff3c1127901af4 |
|---|---|
| Author | KikoCis <kikocisneros@gmail.com> · 2026-10-10 19:18 +02:00 |
| Committer | KikoCis <kikocisneros@gmail.com> · 2026-10-11 14:15 +02:00 |
| Parents | 143eda9ec772 |
2 files changed
modified tests/bugs.mjs +1 −1
| @@ -17,7 +17,7 @@ | ||
| 17 | 17 | // ── Bug A ── |
| 18 | 18 | await p.locator('#tree').getByText('README.md').first().click(); await p.waitForTimeout(700); |
| 19 | 19 | 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) | |
| 21 | 21 | 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';})); |
| 22 | 22 | |
| 23 | 23 | // ── Bug B ── abrir/cerrar/alternar vistas varias veces |
modified tests/conversations.mjs +1 −1
| @@ -74,7 +74,7 @@ | ||
| 74 | 74 | // ---- cerrar pestaña NO borra: sigue en el Historial ---- |
| 75 | 75 | const tabCountBeforeClose = await p.locator('#conv-tabs .tab').count(); |
| 76 | 76 | 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 | |
| 78 | 78 | await p.waitForTimeout(200); |
| 79 | 79 | ok('cerrar la pestaña activa la quita de la vista', await p.locator('#conv-tabs .tab').count() === tabCountBeforeClose - 1); |
| 80 | 80 |