This commit is contained in:
@@ -128,7 +128,7 @@ test('pause and stop control audio and stop returns to route selection', async (
|
||||
assert.match(audio, /audio\.load\(\)/);
|
||||
});
|
||||
|
||||
test('the selected or triggered station is highlighted semantically', async () => {
|
||||
test('the selected or triggered Streckenpunkt is highlighted semantically', async () => {
|
||||
const app = await read('public/js/app.js');
|
||||
const css = await read('public/css/app.css');
|
||||
|
||||
@@ -138,7 +138,7 @@ test('the selected or triggered station is highlighted semantically', async () =
|
||||
assert.match(css, /aktuelle Station/);
|
||||
});
|
||||
|
||||
test('POIs have live direction and metre indicators and take navigation priority', async () => {
|
||||
test('Streckenpunkte have live direction and metre indicators and take navigation priority', async () => {
|
||||
const app = await read('public/js/app.js');
|
||||
const css = await read('public/css/app.css');
|
||||
const html = await read('public/index.html');
|
||||
@@ -147,16 +147,16 @@ test('POIs have live direction and metre indicators and take navigation priority
|
||||
assert.match(app, /function updatePoiIndicators\(position\)/);
|
||||
assert.match(app, /function nearestPendingPoi\(metrics\)/);
|
||||
assert.match(app, /if \(nextPoi\) showPoiNavigation\(position, nextPoi\)/);
|
||||
assert.match(app, /Nächster POI:/);
|
||||
assert.match(app, /Nächster Streckenpunkt:/);
|
||||
assert.match(app, /find\('small'\)\.text\(`\$\{distance\} m`\)/);
|
||||
assert.match(app, /find\('svg'\)\.css\('transform'/);
|
||||
assert.match(css, /\.poi-proximity[\s\S]*grid-column:\s*2/);
|
||||
assert.match(css, /\.poi-proximity svg[\s\S]*transition:\s*transform/);
|
||||
assert.match(html, /Richtung zum nächsten POI/);
|
||||
assert.match(html, /Richtung zum nächsten Streckenpunkt/);
|
||||
});
|
||||
|
||||
|
||||
test('reaching a POI preloads audio without autoplay and uses the vibration wrapper', async () => {
|
||||
test('reaching a Streckenpunkt preloads audio without autoplay and uses the vibration wrapper', async () => {
|
||||
const app = await read('public/js/app.js');
|
||||
const audio = await read('public/js/audio-player.js');
|
||||
const html = await read('public/index.html');
|
||||
@@ -168,14 +168,14 @@ test('reaching a POI preloads audio without autoplay and uses the vibration wrap
|
||||
assert.doesNotMatch(app, /navigator\.vibrate/);
|
||||
assert.match(app, /function stopRouteSensors\(\)[\s\S]*ns\.Vibration\.stop\(\)/);
|
||||
assert.match(audio, /audio\.load\(\)/);
|
||||
assert.match(html, /<audio id="poi-audio" controls preload="metadata" aria-label="Audiowiedergabe zur Station" hidden>/);
|
||||
assert.match(html, /<audio id="poi-audio" controls preload="metadata" aria-label="Audiowiedergabe zum Streckenpunkt" hidden>/);
|
||||
assert.match(audio, /removeAttr\('hidden'\)/);
|
||||
assert.match(audio, /Date\.now\(\)/);
|
||||
assert.match(loader, /'vibration'/);
|
||||
});
|
||||
|
||||
|
||||
test('POI page uses icon-based back and slideshow controls in a single responsive row', async () => {
|
||||
test('Streckenpunkt page uses icon-based back and slideshow controls in a single responsive row', async () => {
|
||||
const html = await read('public/index.html');
|
||||
const css = await read('public/css/app.css');
|
||||
const loader = await read('public/js/bootstrap-loader.js');
|
||||
|
||||
Reference in New Issue
Block a user