overhaul gpx creation and usage
Sonarqube Scanner / Prepare environment (push) Successful in 8s
Sonarqube Scanner / Build and test (push) Failing after 22s
Sonarqube Scanner / SonarQube analysis (push) Skipped
Sonarqube Scanner / Deploy to Server (push) Successful in 6s

This commit is contained in:
Florian Zumpe
2026-10-03 12:40:26 +02:00
parent 1cb3977269
commit 171ea88d55
29 changed files with 969 additions and 344 deletions
+12
View File
@@ -42,6 +42,9 @@ test('information button opens scrollable overlay pages for privacy, imprint and
assert.match(html, /data-info-target="privacy"/);
assert.match(html, /data-info-target="imprint"/);
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\]/);
assert.match(html, /\[E-Mail-Adresse von Florian Zumpe ergänzen\]/);
const storage = await read('public/js/privacy-storage.js');
assert.match(storage, /wegwichtel\.privacy\.v1/);
assert.match(storage, /wegwichtel\.route-progress\.v1/);
@@ -193,6 +196,9 @@ test('legal overlay handlers synchronize switches without advancing the start sc
await loadI18n(context);
vm.runInNewContext(source, context, { filename: sourcePath });
elements.get('info-dialog-title').dataset.i18n = 'info.title';
context.Wegwichtel.I18n.setLanguage('en');
elements.get('info-button').dispatchEvent(pointerEvent());
assert.equal(elements.get('info-dropdown').hidden, false);
assert.equal(elements.get('info-button').attributes.get('aria-expanded'), 'true');
@@ -221,6 +227,12 @@ test('legal overlay handlers synchronize switches without advancing the start sc
assert.equal(elements.get('info-back').hidden, true);
assert.equal(privacyPage.hidden, false);
assert.equal(elements.get('info-dialog-title').textContent, 'Datenschutzerklärung');
assert.equal(elements.get('info-dialog-title').attributes.get('lang'), 'de');
assert.equal(Object.hasOwn(elements.get('info-dialog-title').dataset, 'i18n'), false);
targetButtons[1].dispatchEvent(pointerEvent());
assert.equal(elements.get('info-dialog-title').textContent, 'Impressum');
assert.equal(elements.get('info-dialog-title').attributes.get('lang'), 'de');
progressToggles[0].checked = true;
progressToggles[0].dispatchEvent(new Event('change'));