The test-shield (#test-shield) was added in loader.js (always fresh via plugin manager ?v=time()) but the removal lives in runner.js hideProgress(). runner.js was still cached at ?v=3 in the browser, so the shield stayed after the run. Bumping to ?v=4 in loader.js + all 42 test files forces a fresh runner.js load. chore: bump version to 0.9.15 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
34 lines
905 B
JavaScript
34 lines
905 B
JavaScript
import { describe, it, afterEach, expect, $, $$, click, pressKey, sleep, closeAll } from './runner.js?v=4';
|
|
|
|
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);
|
|
});
|
|
});
|