insert copyright headers for images
Sonarqube Scanner / Prepare environment (push) Successful in 7s
Sonarqube Scanner / Build and test (push) Successful in 30s
Sonarqube Scanner / SonarQube analysis (push) Successful in 1m6s
Sonarqube Scanner / Deploy to Server (push) Successful in 6s

This commit is contained in:
Florian Zumpe
2026-10-04 10:14:40 +02:00
parent 3a682f2b30
commit d3311cce06
18 changed files with 382 additions and 12 deletions
+16 -2
View File
@@ -31,7 +31,7 @@ test('start screen exposes cookie status, optional local progress and deliberate
assert.match(storage, /cookiesEnabled: \(\) => false/);
});
test('information button opens scrollable overlay pages for privacy, imprint and technology', async () => {
test('information button opens scrollable overlay pages for privacy, imprint, terms and technology', async () => {
const html = await read('public/index.html');
const css = await read('public/css/app.css');
const ui = await read('public/js/legal-ui.js');
@@ -41,6 +41,7 @@ test('information button opens scrollable overlay pages for privacy, imprint and
assert.match(html, /<dialog id="info-dialog"/);
assert.match(html, /data-info-target="privacy"/);
assert.match(html, /data-info-target="imprint"/);
assert.match(html, /data-info-target="terms"/);
assert.match(html, /data-info-target="technology"/);
assert.match(html, /<h3>Technisch verantwortlich<\/h3>\s*<p>Florian Zumpe<br>/);
assert.match(html, /\[Anschrift von Florian Zumpe ergänzen\]/);
@@ -137,7 +138,8 @@ test('legal overlay handlers synchronize switches without advancing the start sc
const privacyPage = new FakeElement();
const imprintPage = new FakeElement();
const technologyPage = new FakeElement();
const pages = { privacy: privacyPage, imprint: imprintPage, technology: technologyPage };
const termsPage = new FakeElement();
const pages = { privacy: privacyPage, imprint: imprintPage, terms: termsPage, technology: technologyPage };
const targetButtons = Object.keys(pages).map(name => {
const button = new FakeElement();
button.dataset.infoTarget = name;
@@ -234,6 +236,18 @@ test('legal overlay handlers synchronize switches without advancing the start sc
assert.equal(elements.get('info-dialog-title').textContent, 'Impressum');
assert.equal(elements.get('info-dialog-title').attributes.get('lang'), 'de');
targetButtons[2].dispatchEvent(pointerEvent());
assert.equal(termsPage.hidden, false);
assert.equal(imprintPage.hidden, true);
assert.equal(elements.get('info-dialog-title').textContent, 'Nutzungsvereinbarung');
assert.equal(elements.get('info-dialog-title').attributes.get('lang'), 'de');
assert.equal(Object.hasOwn(elements.get('info-dialog-title').dataset, 'i18n'), false);
targetButtons[3].dispatchEvent(pointerEvent());
assert.equal(technologyPage.hidden, false);
assert.equal(elements.get('info-dialog-title').textContent, 'Saving and permissions');
assert.equal(elements.get('info-dialog-title').attributes.get('lang'), 'en');
progressToggles[0].checked = true;
progressToggles[0].dispatchEvent(new Event('change'));
assert.deepEqual(changes, [true]);