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/);