feat(KAN-36): rebuild profile and appearance settings
CI/CD / preconditions (pull_request) Successful in 1m0s
CI/CD / test_and_check_app (pull_request) Failing after 3m17s
CI/CD / Publish immutable image (pull_request) Skipped

This commit is contained in:
2026-09-14 17:36:41 +02:00
parent 2409c3b18f
commit 1377ee8510
11 changed files with 1004 additions and 322 deletions
+5 -9
View File
@@ -84,15 +84,11 @@ try {
renderTheme('light'),
renderTheme('dark'),
]);
const selectedButton = (html) =>
html.match(
/<button[^>]*aria-pressed="true"[^>]*>([\s\S]*?)<\/button>/,
)[1];
assert.match(selectedButton(light), />Light</);
assert.match(selectedButton(dark), />Dark</);
assert.match(light, /role="group" aria-label="Color theme"/);
assert.equal((light.match(/type="button"/g) ?? []).length, 3);
assert.equal((dark.match(/aria-pressed="true"/g) ?? []).length, 1);
assert.match(light, /value="light"[^>]*checked/);
assert.match(dark, /value="dark"[^>]*checked/);
assert.match(light, /<legend class="sr-only">Color theme<\/legend>/);
assert.equal((light.match(/type="radio"/g) ?? []).length, 3);
assert.equal((dark.match(/ checked/g) ?? []).length, 1);
assert.equal(normalizeAppearance('unexpected'), 'system');
const blade = await readFile('resources/views/app.blade.php', 'utf8');