UI-tests und fixes aus tests

This commit is contained in:
th committed 2026-04-09 22:18:45 +02:00
1 parent 73da8fb849
commit 968d980be1
46 files changed
+3853 -61

No files matched your search

+12 -1
View File
@@ -36,7 +36,7 @@ window._ungroupCard = ungroupCard;
window._getSelectedIds = getSelectedIds;
window._clearSelection = clearSelection;
window._refreshTasks = refreshTasksView;
window._reloadAll = async () => { state.cards = await api('api/cards') || []; renderBoard(); refreshCalendar(); };
window._reloadAll = async () => { await loadBuckets(); state.cards = await api('api/cards') || []; renderBoard(); refreshCalendar(); };
window._extractToCard = async (text) => {
if (!text?.trim()) return;
const lines = text.trim().split('\n');
@@ -232,3 +232,14 @@ document.addEventListener('keydown', e => {
// ── Boot ──
checkAuth();
// ── Test runner (lazy-loaded, no cost in production) ──
if (new URLSearchParams(location.search).has('test') || false) {
import('./test/tests.js');
}
document.addEventListener('keydown', e => {
if (e.ctrlKey && e.shiftKey && e.key === 'T') {
e.preventDefault();
import('./test/tests.js').then(() => import('./test/runner.js').then(m => m.open()));
}
});