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

+6 -2
View File
@@ -40,10 +40,14 @@ export function pushCardEdit(label, cardId, prevData) {
export function pushCardDelete(label, card) {
pushUndo(label, async () => {
await api('api/cards', { method: 'POST', body: {
const created = await api('api/cards', { method: 'POST', body: {
title: card.title, body: card.body, color: card.color,
bucket_id: card.bucket_id, position: card.position,
bucket_id: card.bucket_id, parent_id: card.parent_id, position: card.position,
}});
// Restore fields that POST doesn't accept
if (created?.id && card.due_date) {
await api(`api/cards/${created.id}`, { method: 'PATCH', body: { due_date: card.due_date } });
}
});
}