Make admin JSON responses easier to scan
Build and publish frontend / publish (push) Failing after 2s

This commit is contained in:
Ein Anderssono
2026-10-24 03:23:37 +02:00
parent 6a0c2fb22c
commit a746c29acb
2 changed files with 66 additions and 4 deletions
+13
View File
@@ -42,3 +42,16 @@ test('admin can switch to a storyteller-only reading view and return to diagnost
assert.match(page, /article > :not\(\.admin-story-player\):not\(\.admin-story-reply\)/);
assert.match(page, /article > \.admin-story-player,\s*#admin-content \.admin-simple-conversation article > \.admin-story-reply/);
});
test('admin JSON responses use tab-indented syntax-colored accessible output', () => {
assert.match(page, /function appendFormattedJson/);
assert.match(page, /JSON\.stringify\(value, null, '\\t'\)/);
assert.match(page, /json-token-key/);
assert.match(page, /json-token-string/);
assert.match(page, /json-token-number/);
assert.match(page, /json-token-boolean/);
assert.match(page, /json-token-null/);
assert.match(page, /setAttribute\('aria-label', 'Formaterat JSON-svar'\)/);
assert.match(page, /appendFormattedJson\(pre, group\)/);
});