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>
33 lines
1006 B
JavaScript
33 lines
1006 B
JavaScript
import { describe, it, expect, $ } from './runner.js?v=4';
|
|
|
|
describe('Notification Banner', () => {
|
|
it('banner element exists', () => {
|
|
expect($('#upcoming-banner')).toExist();
|
|
});
|
|
|
|
it('notification settings in localStorage', () => {
|
|
// Settings should exist or default to null (both valid)
|
|
const settings = localStorage.getItem('hyprcrd-notif-settings');
|
|
if (settings) {
|
|
const parsed = JSON.parse(settings);
|
|
expect(parsed).toExist();
|
|
} else {
|
|
expect(true).toBe(true); // defaults are fine
|
|
}
|
|
});
|
|
});
|
|
|
|
describe('Notification Settings', () => {
|
|
it('lookahead select has options', () => {
|
|
const sel = $('#notif-lookahead');
|
|
expect(sel).toExist();
|
|
expect(sel.options.length).toBeGreaterThan(2);
|
|
});
|
|
|
|
it('time select has options', () => {
|
|
const sel = $('#notif-time');
|
|
expect(sel).toExist();
|
|
expect(sel.options.length).toBeGreaterThan(2);
|
|
});
|
|
});
|