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>
43 lines
1.3 KiB
JavaScript
43 lines
1.3 KiB
JavaScript
import { describe, it, expect, $ } from './runner.js?v=4';
|
|
|
|
describe('App Shell', () => {
|
|
it('header with logo', () => {
|
|
expect($('header')).toExist();
|
|
expect($('#logo') || $('header h1')).toExist();
|
|
});
|
|
|
|
it('board element with relative positioning', () => {
|
|
const board = $('#board');
|
|
expect(board).toExist();
|
|
expect(board.classList.contains('relative')).toBe(true);
|
|
});
|
|
|
|
it('footer buttons', () => {
|
|
for (const id of ['settings-btn', 'export-btn', 'import-btn', 'logout-btn', 'export-md-btn']) {
|
|
expect($(`#${id}`)).toExist();
|
|
}
|
|
});
|
|
|
|
it('header buttons', () => {
|
|
for (const id of ['search-btn', 'calendar-btn', 'gallery-btn', 'add-btn']) {
|
|
expect($(`#${id}`)).toExist();
|
|
}
|
|
});
|
|
|
|
it('toolbar controls', () => {
|
|
for (const id of ['bucket-bar', 'board-split-toggle', 'superview-toggle', 'hide-done', 'hide-termine', 'sort-toggle', 'sort-label']) {
|
|
expect($(`#${id}`)).toExist();
|
|
}
|
|
});
|
|
|
|
it('footer card count', () => {
|
|
const fc = $('#footer-count');
|
|
expect(fc).toExist();
|
|
expect(fc.textContent).toContain('card');
|
|
});
|
|
|
|
it('hidden file inputs', () => {
|
|
expect($('#import-file')).toExist();
|
|
});
|
|
});
|