tim plugin, chat bot sync notifications, test fixes
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
1 parent
ca47052768
commit
3b7c7cf5ac
21 files changed
+827
-14
No files matched your search
@@ -392,11 +392,18 @@ describe('Card: Group Delete', () => {
|
||||
if (dialog?.classList.contains('open')) {
|
||||
const okBtn = document.getElementById('dialog-ok');
|
||||
if (okBtn) click(okBtn);
|
||||
await sleep(500);
|
||||
}
|
||||
|
||||
// Confirm both are gone
|
||||
let cards = await fetch('api/cards').then(r => r.json());
|
||||
// Poll until deletion lands (can take a while on slow machines with
|
||||
// confirm-dialog + two DELETE calls chained).
|
||||
let cards;
|
||||
const start = Date.now();
|
||||
while (Date.now() - start < 4000) {
|
||||
cards = await fetch('api/cards').then(r => r.json());
|
||||
const stillThere = cards.some(c => c.id === parent.id || c.id === child.id);
|
||||
if (!stillThere) break;
|
||||
await sleep(100);
|
||||
}
|
||||
expect(cards.some(c => c.id === parent.id)).toBe(false);
|
||||
expect(cards.some(c => c.id === child.id)).toBe(false);
|
||||
|
||||
|
||||
Reference in new issue
Block a user