insert copyright headers for images
This commit is contained in:
+16
-2
@@ -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]);
|
||||
|
||||
Reference in New Issue
Block a user