Make admin JSON responses easier to scan
Build and publish frontend / publish (push) Failing after 2s
Build and publish frontend / publish (push) Failing after 2s
This commit is contained in:
@@ -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\)/);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user