image handling update for route creation
Sonarqube Scanner / Build and analyze (push) Failing after 20s
Sonarqube Scanner / Build and analyze (push) Failing after 20s
This commit is contained in:
@@ -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\(\)/);
|
||||
|
||||
Reference in New Issue
Block a user