plugin infrastruktur

This commit is contained in:
th committed 2026-04-10 07:57:53 +02:00
1 parent dd2a995f6c
commit 1545b90f39
43 files changed

No files matched your search

+33
View File
@@ -0,0 +1,33 @@
import { describe, it, afterEach, expect, $, $$, click, pressKey, sleep, closeAll } from './runner.js';
describe('Help', () => {
afterEach(() => closeAll());
it('opens with F1', async () => {
pressKey('F1');
await sleep(150);
expect($('#help')).toBeVisible();
});
it('toggles with F1', async () => {
pressKey('F1');
await sleep(100);
expect($('#help')).toBeVisible();
pressKey('F1');
await sleep(150);
expect($('#help')).toBeHidden();
});
it('opens with help button', async () => {
click('#help-btn');
await sleep(150);
expect($('#help')).toBeVisible();
});
it('has content sections', async () => {
click('#help-btn');
await sleep(150);
const sections = $$('#help h3, #help h2');
expect(sections.length).toBeGreaterThan(2);
});
});