diff --git a/test/mobile-navigation-ui.test.js b/test/mobile-navigation-ui.test.js index 9a89801..435401b 100644 --- a/test/mobile-navigation-ui.test.js +++ b/test/mobile-navigation-ui.test.js @@ -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, /