utopia-ia/elffuss-code public
Changesets · Branches · Tags · Compare
| Changeset | 73fca59181f436618c6a303bd7fca4735a888bc9886f1bd8f8d5e7164d762a05 |
|---|---|
| Author | KikoCis <kikocisneros@gmail.com> · 2026-10-12 10:16 +02:00 |
| Committer | KikoCis <kikocisneros@gmail.com> · 2026-10-12 10:16 +02:00 |
| Parents | 00c23ea566f6 |
1 file changed
modified tests/palette_text.mjs +1 −1
| @@ -66,7 +66,7 @@ | ||
| 66 | 66 | const rows = [...m.querySelectorAll('.menu-item')]; |
| 67 | 67 | return rows.length ? rows.map(r => [r.querySelector('b')?.textContent, r.querySelector('span')?.textContent ?? null]) : null; |
| 68 | 68 | })); |
| 69 | -ok('menu bar rows keep their label and hint', !!view && view.some(([l, h]) => l === 'Command Palette' && h === 'Cmd+Shift+P'), JSON.stringify(view?.slice(0, 4))); | |
| 69 | +ok('menu bar rows keep their label and hint', !!view && view.some(([l, h]) => /^Command palette$/i.test(l || '') && /^(⌘⇧P|Ctrl\+Shift\+P)$/.test(h || '')), JSON.stringify(view?.slice(0, 6))); | |
| 70 | 70 | |
| 71 | 71 | await sleep(300); |
| 72 | 72 | ok('no handler from a file name ever ran', await page.evaluate(() => window.__xss === undefined)); |