Fix mobile view Bugs and add versions to static files for cache breaking
This commit is contained in:
@@ -168,7 +168,9 @@ 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="auto" hidden>/);
|
||||
assert.match(html, /<audio id="poi-audio" controls preload="metadata" aria-label="Audiowiedergabe zur Station" hidden>/);
|
||||
assert.match(audio, /removeAttr\('hidden'\)/);
|
||||
assert.match(audio, /Date\.now\(\)/);
|
||||
assert.match(loader, /'vibration'/);
|
||||
});
|
||||
|
||||
@@ -182,12 +184,16 @@ test('POI page uses icon-based back and slideshow controls in a single responsiv
|
||||
assert.match(html, /id="slide-prev"[\s\S]*images\/icons\/chevron-left\.svg/);
|
||||
assert.match(html, /id="slide-next"[\s\S]*images\/icons\/chevron-right\.svg/);
|
||||
assert.match(html, /<fieldset>[\s\S]*<legend>Bildnavigation<\/legend>/);
|
||||
assert.match(css, /#slideshow > fieldset[\s\S]*display:\s*flex/);
|
||||
assert.match(css, /#slideshow > fieldset[\s\S]*flex-flow:\s*row nowrap/);
|
||||
assert.match(css, /#slideshow > fieldset[\s\S]*display:\s*grid/);
|
||||
assert.match(css, /grid-template-columns:\s*var\(--icon-button-size\) minmax\(0, 1fr\) var\(--icon-button-size\)/);
|
||||
assert.match(css, /#slideshow > fieldset[\s\S]*align-items:\s*center/);
|
||||
assert.match(css, /#slideshow > fieldset > button\.ui-button[\s\S]*flex:\s*0 0 var\(--icon-button-size\)/);
|
||||
assert.match(css, /#slideshow > fieldset > div[\s\S]*flex:\s*1 1 0/);
|
||||
assert.match(css, /#slideshow > fieldset > button\.ui-button[\s\S]*width:\s*var\(--icon-button-size\)/);
|
||||
assert.match(css, /#slideshow > fieldset > div[\s\S]*min-width:\s*0/);
|
||||
assert.match(css, /#slideshow > fieldset > div[\s\S]*justify-content:\s*center/);
|
||||
assert.match(css, /#slide-caption[\s\S]*overflow-wrap:\s*anywhere/);
|
||||
assert.match(css, /#slide-image[\s\S]*object-fit:\s*contain/);
|
||||
assert.doesNotMatch(css, /#slideshow img\s*\{/);
|
||||
assert.match(html, /images\/icons\/play\.svg" alt="Route starten"/);
|
||||
assert.match(html, /images\/icons\/chevron-left\.svg" alt="Vorheriges Bild"/);
|
||||
assert.doesNotMatch(loader, /controlgroup/);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user