diff --git a/config.php b/config.php index 7d7576b..a0ea6fb 100644 --- a/config.php +++ b/config.php @@ -1,7 +1,7 @@ { await closeAll(); }); - it('Enter creates card with #inbox tag', async () => { + it('Enter creates card in active bucket', async () => { pressKey('n', { ctrlKey: true }); await sleep(100); const input = $('#quick-capture-input'); @@ -57,7 +57,6 @@ describe('Quick Capture: Card Creation', () => { const cards = await fetch('api/cards').then(r => r.json()); const found = cards.find(c => c.title === '__test_quick_capture__'); expect(found).toExist(); - expect(found.tags).toContain('inbox'); }); it('capture bar closes after Enter', async () => { diff --git a/public/plugins/tests/runner.js b/public/plugins/tests/runner.js index 5967035..8c5b2f6 100644 --- a/public/plugins/tests/runner.js +++ b/public/plugins/tests/runner.js @@ -496,7 +496,7 @@ document.addEventListener('keydown', e => { e.preventDefault(); panel ? close() : open(); } - if (e.key === 'Escape' && panel) { + if (e.key === 'Escape' && panel && panel.style.display !== 'none') { e.preventDefault(); e.stopPropagation(); close();