remove obsolete elements and cleanup gui
This commit is contained in:
@@ -18,8 +18,7 @@ test('main screen contains a persistent route control next to the information co
|
||||
assert.match(html, /class="route-control"/);
|
||||
assert.match(html, /id="route-control-button"/);
|
||||
assert.match(html, /id="route-control-dropdown"/);
|
||||
assert.match(html, /id="route-control-title"/);
|
||||
assert.match(html, /id="route-control-next"/);
|
||||
assert.doesNotMatch(html, /route-control-summary|route-control-title|route-control-next/);
|
||||
assert.match(html, /id="route-control-server-list"/);
|
||||
assert.match(html, /id="route-control-local-list"/);
|
||||
assert.match(html, /id="route-control-new"/);
|
||||
@@ -52,12 +51,12 @@ test('route selection separates activated server routes from local browser route
|
||||
assert.match(app, /\[data-route-select\]/);
|
||||
});
|
||||
|
||||
test('persistent route control displays the next unvisited Station and preserves progress when switching', async () => {
|
||||
test('route switching preserves progress and navigation continues to target unvisited stations', async () => {
|
||||
const app = await read('public/js/app.js');
|
||||
|
||||
assert.match(app, /function nextPoiMetric\(/);
|
||||
assert.match(app, /I18n\.t\("app\.next-station-summary", \{ value1: metric\.poi\.title, value2: distance \}\)/);
|
||||
assert.match(app, /state\.triggered\.has\(poi\.id\)/);
|
||||
assert.match(app, /function nearestPendingPoi\(/);
|
||||
assert.match(app, /function showPoiNavigation\(/);
|
||||
assert.match(app, /state\.triggered\.has\(metric\.poi\.id\)/);
|
||||
assert.match(app, /function suspendCurrentRoute\(/);
|
||||
assert.match(app, /persistRouteProgress\(\)/);
|
||||
assert.match(app, /await selectRoute/);
|
||||
|
||||
Reference in New Issue
Block a user