From 0499d36cad7081bfeb6e2bb052444e745b74b721 Mon Sep 17 00:00:00 2001 From: Alex Rudenko Date: Wed, 11 Feb 2026 08:17:45 +0100 Subject: [PATCH] test: add tests for more a11y attributes --- tests/formatters/snapshotFormatter.test.ts | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/tests/formatters/snapshotFormatter.test.ts b/tests/formatters/snapshotFormatter.test.ts index 281cc17ab..db7c4491d 100644 --- a/tests/formatters/snapshotFormatter.test.ts +++ b/tests/formatters/snapshotFormatter.test.ts @@ -19,6 +19,10 @@ describe('snapshotFormatter', () => { role: 'textbox', name: 'textbox', value: 'value', + live: 'polite', + relevant: 'additions', + errormessage: 'error-id', + details: 'details-id', children: [ { id: '1_2', @@ -39,7 +43,7 @@ describe('snapshotFormatter', () => { const formatted = formatter.toString(); assert.strictEqual( formatted, - `uid=1_1 textbox "textbox" value="value" + `uid=1_1 textbox "textbox" details="details-id" errormessage="error-id" live="polite" relevant="additions" value="value" uid=1_2 statictext "text" `, ); @@ -51,6 +55,8 @@ describe('snapshotFormatter', () => { role: 'button', name: 'button', disabled: true, + busy: true, + atomic: true, children: [ { id: '1_2', @@ -71,7 +77,7 @@ describe('snapshotFormatter', () => { const formatted = formatter.toString(); assert.strictEqual( formatted, - `uid=1_1 button "button" disableable disabled + `uid=1_1 button "button" atomic busy disableable disabled uid=1_2 statictext "text" `, ); @@ -261,6 +267,8 @@ describe('snapshotFormatter', () => { id: '1_1', role: 'root', name: 'root', + busy: true, + live: 'polite', children: [ { id: '1_2', @@ -281,6 +289,8 @@ describe('snapshotFormatter', () => { id: '1_1', role: 'root', name: 'root', + busy: true, + live: 'polite', children: [ { id: '1_2',