@tristan2828/ui-foundation 4.129.1 → 4.129.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/testing/index.d.ts +7 -0
- package/dist/testing/index.js +8 -1
- package/package.json +1 -1
package/dist/testing/index.d.ts
CHANGED
|
@@ -123,6 +123,13 @@ export declare const POPUP_FOCUS_GUARDS = "[data-base-ui-focus-guard]";
|
|
|
123
123
|
* by design (`disableRules: ['region']`) and brings focus guards
|
|
124
124
|
* (`exclude: [POPUP_FOCUS_GUARDS]`), while every other rule, contrast
|
|
125
125
|
* included, still checks the list.
|
|
126
|
+
*
|
|
127
|
+
* It scans in axe's legacy mode: axe runs inside the page and opens no
|
|
128
|
+
* other. The default mode finishes each scan in a fresh blank page, and
|
|
129
|
+
* starting that page's renderer stalled scans past a test's 30 s when
|
|
130
|
+
* several browsers started together (a run's first wave, or the fresh
|
|
131
|
+
* workers after a failure). The cost: cross-origin frames aren't scanned;
|
|
132
|
+
* same-origin frames still are.
|
|
126
133
|
*/
|
|
127
134
|
export declare function expectNoAxeViolations(page: Page, options?: {
|
|
128
135
|
disableRules?: string[];
|
package/dist/testing/index.js
CHANGED
|
@@ -287,10 +287,17 @@ export const POPUP_FOCUS_GUARDS = '[data-base-ui-focus-guard]';
|
|
|
287
287
|
* by design (`disableRules: ['region']`) and brings focus guards
|
|
288
288
|
* (`exclude: [POPUP_FOCUS_GUARDS]`), while every other rule, contrast
|
|
289
289
|
* included, still checks the list.
|
|
290
|
+
*
|
|
291
|
+
* It scans in axe's legacy mode: axe runs inside the page and opens no
|
|
292
|
+
* other. The default mode finishes each scan in a fresh blank page, and
|
|
293
|
+
* starting that page's renderer stalled scans past a test's 30 s when
|
|
294
|
+
* several browsers started together (a run's first wave, or the fresh
|
|
295
|
+
* workers after a failure). The cost: cross-origin frames aren't scanned;
|
|
296
|
+
* same-origin frames still are.
|
|
290
297
|
*/
|
|
291
298
|
export async function expectNoAxeViolations(page, options = {}) {
|
|
292
299
|
await waitForTransitions(page);
|
|
293
|
-
const builder = new AxeBuilder({ page });
|
|
300
|
+
const builder = new AxeBuilder({ page }).setLegacyMode(true);
|
|
294
301
|
if (options.disableRules?.length)
|
|
295
302
|
builder.disableRules(options.disableRules);
|
|
296
303
|
for (const selector of options.exclude ?? [])
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tristan2828/ui-foundation",
|
|
3
|
-
"version": "4.129.
|
|
3
|
+
"version": "4.129.2",
|
|
4
4
|
"description": "Shared UI foundation for contract-first, database-backed React apps: shadcn primitives, DataTable/EntityForm composites, auth, the gateway error seam, design tokens, lint rules and the AI playbook.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|