fix test logic
Sonarqube Scanner / Build and analyze (push) Failing after 19s

This commit is contained in:
Florian Zumpe
2026-09-27 20:39:24 +02:00
parent 5df5ae7782
commit bd13a479b1
5 changed files with 29 additions and 15 deletions
+1 -1
View File
@@ -12,7 +12,7 @@ async function read(relativePath) {
test('bootstrap screen remains vertically scrollable on small displays', async () => {
const css = await read('public/css/bootstrap.css');
const bootstrapRule = css.match(/#bootstrap-screen\s*\{([\s\S]*?)\}/)?.[1] ?? '';
const cardRule = css.match(/#bootstrap-screen\s*>\s*section\s*\{([\s\S]*?)\}/)?.[1] ?? '';
const cardRule = css.match(/#bootstrap-screen\s*>\s*\.bootstrap-card\s*\{([\s\S]*?)\}/)?.[1] ?? '';
assert.match(bootstrapRule, /overflow-y:\s*auto/);
assert.match(bootstrapRule, /overflow-x:\s*hidden/);
+4
View File
@@ -34,9 +34,13 @@ test('bootstrap status text fades between loading steps and is replaced by the s
assert.match(fadingRule, /opacity:\s*0/);
assert.match(loader, /statusText\.classList\.add\('is-fading'\)/);
assert.match(loader, /statusText\.classList\.remove\('is-fading'\)/);
assert.match(loader, /storage:\s*'Lokalen Speicher prüfen …'/);
assert.match(loader, /server:\s*'Server prüfen …'/);
assert.match(loader, /routes:\s*'Routen laden …'/);
assert.match(loader, /location:\s*'Standort ermitteln …'/);
assert.match(loader, /actionStatus\?\.classList\.add\('is-leaving'\)/);
assert.match(loader, /enter\.classList\.add\('is-visible'\)/);
assert.match(loader, /const completedSteps = new Set\(\)/);
assert.doesNotMatch(loader, /dataset\.state/);
assert.match(loader, /event\.stopPropagation\?\.\(\)/);
});