image handling update for route creation
Sonarqube Scanner / Build and analyze (push) Failing after 20s

This commit is contained in:
Florian Zumpe
2026-09-27 21:50:52 +02:00
parent 4b8105188f
commit 7f6d0425d5
16 changed files with 831 additions and 182 deletions
+6 -1
View File
@@ -12,6 +12,7 @@ async function read(relativePath) {
test('main screen contains a persistent route control next to the information control', async () => {
const html = await read('public/index.html');
const css = await read('public/css/editor.css');
const icon = await read('public/images/icons/route-management.svg');
assert.match(html, /class="route-control"/);
assert.match(html, /id="route-control-button"/);
@@ -22,6 +23,10 @@ test('main screen contains a persistent route control next to the information co
assert.match(html, /id="route-control-local-list"/);
assert.match(html, /id="route-control-new"/);
assert.match(html, /id="info-button"/);
assert.match(html, /id="route-control-button"[\s\S]*?<img[^>]+route-management\.svg/);
assert.match(html, /id="editor-button"[^>]*>Strecken verwalten<\/button>/);
assert.match(icon, /C[^\"]+/);
assert.match(icon, /stroke-dasharray/);
assert.match(css, /\.route-control\s*\{[\s\S]*position:\s*fixed/i);
assert.match(css, /\.route-control\s*\{[\s\S]*right:\s*calc\([\s\S]*--icon-button-size/i);
@@ -50,7 +55,7 @@ test('persistent route control displays the next unvisited POI and preserves pro
const app = await read('public/js/app.js');
assert.match(app, /function nextPoiMetric\(/);
assert.match(app, /Nächster POI:/);
assert.match(app, /Nächster Streckenpunkt:/);
assert.match(app, /state\.triggered\.has\(poi\.id\)/);
assert.match(app, /function suspendCurrentRoute\(/);
assert.match(app, /persistRouteProgress\(\)/);