Skip to content

An open source design system that's fully customizable and agent ready

TypeScript

test(browser): keep every Playwright browser context off remote hosts (#9811)

Cindy Zhange390c3c43983
diff --git a/.github/scripts/accessibility-audit.integration.test.mjs b/.github/scripts/accessibility-audit.integration.test.mjs
index 676039a2f6..d98d98e291 100644
--- a/.github/scripts/accessibility-audit.integration.test.mjs
+++ b/.github/scripts/accessibility-audit.integration.test.mjs
@@ -116,7 +116,12 @@ const page = {
const context = {
addInitScript: async () => {},
route: async (pattern, handler) => {
- if (pattern === '**/*' && typeof handler === 'function') {
+ // The route must reach remote hosts and skip the loopback story server.
+ const routesRemote =
+ typeof pattern?.test === 'function' &&
+ pattern.test('https://picsum.photos/400') &&
+ !pattern.test('http://127.0.0.1:6006/iframe.html');
+ if (routesRemote && typeof handler === 'function') {
remoteImagesRouted = true;
}
},
@@ -176,9 +181,7 @@ function runFixture(
// let the OS assign a free one.
'--port',
'0',
- ...(readySelector == null
- ? []
- : ['--ready-selector', readySelector]),
+ ...(readySelector == null ? [] : ['--ready-selector', readySelector]),
...(stories == null ? [] : ['--stories', stories]),
],
{
@@ -187,7 +190,8 @@ function runFixture(
env: {
...process.env,
A11Y_TEST_SCENARIO: scenario,
- NODE_OPTIONS: `${process.env.NODE_OPTIONS ?? ''} --require=${mock}`.trim(),
+ NODE_OPTIONS:
+ `${process.env.NODE_OPTIONS ?? ''} --require=${mock}`.trim(),
},
},
);
@@ -315,16 +319,10 @@ describe.sequential('accessibility-audit CLI readiness', () => {
});
it('routes a11y contract fixtures to canonical owners and legacy aliases', () => {
- const result = runFixture(
- 'delayed',
- PATTERN_INDEX,
- 'core/ClickableCard',
- );
+ const result = runFixture('delayed', PATTERN_INDEX, 'core/ClickableCard');
expect(result.status).toBe(0);
expect(result.report.ownerStoryRoutes).toEqual({
- 'core/ClickableCard': [
- 'a11y-button-pattern--clickable-card-disabled',
- ],
+ 'core/ClickableCard': ['a11y-button-pattern--clickable-card-disabled'],
});
expect(result.report.legacyBaselineAliases).toEqual({
'ClickableCard::Disabled': [
diff --git a/.github/scripts/lib/offline-media.d.ts b/.github/scripts/lib/offline-media.d.ts
new file mode 100644
index 0000000000..74c4329f43
--- /dev/null
+++ b/.github/scripts/lib/offline-media.d.ts
@@ -0,0 +1,40 @@
+// Copyright (c) Meta Platforms, Inc. and affiliates.
+
+/**
+ * @file Types for offline-media.js, for TypeScript callers.
+ * @input None
+ * @output The declarations of the offline-media exports.
+ * @position Read by the shared Playwright base test in
+ * internal/a11y-spec/src/playwright.ts.
+ * SYNC: Keep equal to the exports of offline-media.js.
+ */
+
+interface RequestFacts {
+ url: string;
+ resourceType: string;
+}
+
+interface Routable {
+ route(
+ url: RegExp,
+ handler: (route: import('@playwright/test').Route) => Promise<void>,
+ ): Promise<unknown>;
+}
+
+export const STAND_IN_IMAGE: Buffer;
+
+export function isRemoteImage(
+ request: RequestFacts,
+ storyOrigin: string | undefined,
+): boolean;
+
+export function isRemoteNonImage(
+ request: RequestFacts,
+ storyOrigin: string | undefined,
+): boolean;
+
+export function routeRemoteImages(
+ target: Routable,
+ storyOrigin: string | undefined,
+ options?: {abortOther?: boolean},
+): Promise<void>;
diff --git a/.github/scripts/lib/offline-media.js b/.github/scripts/lib/offline-media.js
index 6f5d176690..23ed9d6024 100644
--- a/.github/scripts/lib/offline-media.js
+++ b/.github/scripts/lib/offline-media.js
@@ -4,15 +4,16 @@
/* global Buffer, module */
/**
- * @file Answers a page's remote images locally, so no Storybook scan
- * depends on a remote image host.
- * @input A Playwright page or browser context, and the origin it serves
- * stories from.
+ * @file Keeps a page's network local, so no browser check depends on a remote
+ * host.
+ * @input A Playwright page or browser context, the origin it serves stories
+ * from, and whether to block remote requests that are not images.
* @output Every image request to another host is answered with a small local
- * image. Requests to the story origin, and remote requests that are not
- * images, pass unchanged.
- * @position Used by the accessibility audit. A browser spec that loads remote
- * photos may use it in place of its own stand-in.
+ * image. With `abortOther`, every other request to another host fails at
+ * once. Requests to the story origin and to the loopback host pass.
+ * @position Used by the accessibility audit, and by the shared Playwright base
+ * test (`@astryxdesign/a11y-spec/playwright`) with `abortOther`.
+ * SYNC: offline-media.d.ts declares these exports for TypeScript callers.
*/
/** A neutral stand-in: a transparent 400 × 400 SVG. */
@@ -22,6 +23,34 @@ const STAND_IN_IMAGE = Buffer.from(
const IMAGE_PATH = /\.(?:avif|bmp|gif|ico|jpe?g|png|svg|webp)$/i;
+const LOOPBACK_HOSTS = new Set(['localhost', '127.0.0.1', '[::1]']);
+
+// Playwright matches a route pattern in the browser process. Loopback
+// requests then go on without a round trip to the test process.
+const NOT_LOOPBACK = /^https?:\/\/(?!(?:localhost|127\.0\.0\.1|\[::1\])[:/])/;
+
+/**
+ * The URL when it goes to a remote host: an http(s) host other than the story
+ * origin and the loopback host. Otherwise null. A `data:` or `blob:` URL
+ * makes no network request, so it is never remote.
+ *
+ * @param {string} url
+ * @param {string | undefined} storyOrigin
+ * @returns {URL | null}
+ */
+function remoteURL(url, storyOrigin) {
+ let parsed;
+ try {
+ parsed = new URL(url);
+ } catch {
+ return null;
+ }
+ if (parsed.protocol !== 'http:' && parsed.protocol !== 'https:') return null;
+ if (parsed.origin === storyOrigin) return null;
+ if (LOOPBACK_HOSTS.has(parsed.hostname)) return null;
+ return parsed;
+}
+
/**
* Whether a request is a remote image: an image fetch to a host other than
* the story origin. A request the browser makes for an `<img>`, a CSS
@@ -29,39 +58,48 @@ const IMAGE_PATH = /\.(?:avif|bmp|gif|ico|jpe?g|png|svg|webp)$/i;
* URL is matched by its extension.
*
* @param {{url: string, resourceType: string}} request
- * @param {string} storyOrigin
+ * @param {string | undefined} storyOrigin
*/
function isRemoteImage({url, resourceType}, storyOrigin) {
- let parsed;
- try {
- parsed = new URL(url);
- } catch {
- return false;
- }
- if (parsed.protocol !== 'http:' && parsed.protocol !== 'https:') return false;
- if (parsed.origin === storyOrigin) return false;
- if (parsed.hostname === 'localhost' || parsed.hostname === '127.0.0.1')
- return false;
- return resourceType === 'image' || IMAGE_PATH.test(parsed.pathname);
+ const remote = remoteURL(url, storyOrigin);
+ if (remote == null) return false;
+ return resourceType === 'image' || IMAGE_PATH.test(remote.pathname);
+}
+
+/**
+ * Whether a request goes to a remote host and is not an image: with
+ * `abortOther`, these requests fail.
+ *
+ * @param {{url: string, resourceType: string}} request
+ * @param {string | undefined} storyOrigin
+ */
+function isRemoteNonImage(request, storyOrigin) {
+ return (
+ remoteURL(request.url, storyOrigin) != null &&
+ !isRemoteImage(request, storyOrigin)
+ );
}
/**
* Answers every remote image on `target` (a page or a browser context)
- * locally. Await it before the first navigation.
+ * locally. With `abortOther`, every other remote request fails at once, so a
+ * remote font, script or API call cannot hold the load event. Await it before
+ * the first navigation.
*
* @param {{route: Function}} target
- * @param {string} storyOrigin
+ * @param {string | undefined} storyOrigin
+ * @param {{abortOther?: boolean}} [options]
* @returns {Promise<void>}
*/
-async function routeRemoteImages(target, storyOrigin) {
- await target.route('**/*', async route => {
+async function routeRemoteImages(
+ target,
+ storyOrigin,
+ {abortOther = false} = {},
+) {
+ await target.route(NOT_LOOPBACK, async route => {
const request = route.request();
- if (
- isRemoteImage(
- {url: request.url(), resourceType: request.resourceType()},
- storyOrigin,
- )
- ) {
+ const facts = {url: request.url(), resourceType: request.resourceType()};
+ if (isRemoteImage(facts, storyOrigin)) {
await route.fulfill({
status: 200,
contentType: 'image/svg+xml',
@@ -69,8 +107,17 @@ async function routeRemoteImages(target, storyOrigin) {
});
return;
}
+ if (abortOther && isRemoteNonImage(facts, storyOrigin)) {
+ await route.abort('blockedbyclient');
+ return;
+ }
await route.continue();
});
}
-module.exports = {STAND_IN_IMAGE, isRemoteImage, routeRemoteImages};
+module.exports = {
+ STAND_IN_IMAGE,
+ isRemoteImage,
+ isRemoteNonImage,
+ routeRemoteImages,
+};
diff --git a/.github/scripts/lib/offline-media.test.mjs b/.github/scripts/lib/offline-media.test.mjs
index c630451158..b9a59bab54 100644
--- a/.github/scripts/lib/offline-media.test.mjs
+++ b/.github/scripts/lib/offline-media.test.mjs
@@ -6,7 +6,11 @@ import {createRequire} from 'node:module';
import {afterAll, beforeAll, describe, expect, it} from 'vitest';
const require = createRequire(import.meta.url);
-const {isRemoteImage, routeRemoteImages} = require('./offline-media.js');
+const {
+ isRemoteImage,
+ isRemoteNonImage,
+ routeRemoteImages,
+} = require('./offline-media.js');
const ORIGIN = 'http://localhost:6006';
@@ -31,6 +35,37 @@ describe('isRemoteImage', () => {
});
});
+describe('isRemoteNonImage', () => {
+ it.each([
+ [{url: 'https://fonts.example.com/font.woff2', resourceType: 'font'}, true],
+ [{url: 'https://api.example.com/data', resourceType: 'fetch'}, true],
+ [{url: 'https://cdn.example.com/app.js', resourceType: 'script'}, true],
+ // A remote image gets the stand-in, so it is not blocked.
+ [{url: 'https://picsum.photos/400', resourceType: 'image'}, false],
+ [{url: 'https://placehold.co/600x400.png', resourceType: 'fetch'}, false],
+ // The story origin, the loopback host and URLs with no network pass.
+ [{url: `${ORIGIN}/iframe.html`, resourceType: 'document'}, false],
+ [{url: 'http://127.0.0.1:9000/fixture.js', resourceType: 'script'}, false],
+ [{url: 'http://[::1]:9000/fixture.js', resourceType: 'script'}, false],
+ [{url: 'http://localhost:9000/a.css', resourceType: 'stylesheet'}, false],
+ [{url: 'data:text/css,a{}', resourceType: 'stylesheet'}, false],
+ [{url: 'blob:http://localhost:6006/1', resourceType: 'fetch'}, false],
+ ])('%j → %s', (request, expected) => {
+ expect(isRemoteNonImage(request, ORIGIN)).toBe(expected);
+ });
+
+ it('with no story origin, only the loopback host is local', () => {
+ const request = {url: `${ORIGIN}/iframe.html`, resourceType: 'document'};
+ expect(isRemoteNonImage(request, undefined)).toBe(false);
+ expect(
+ isRemoteNonImage(
+ {url: 'https://stories.example.com/', resourceType: 'document'},
+ undefined,
+ ),
+ ).toBe(true);
+ });
+});
+
// The Node test legs install no browser; this proof runs wherever Chromium is
// installed (a workstation, or any job that installs Playwright's Chromium).
const chromiumInstalled = (() => {
@@ -67,6 +102,13 @@ describe.runIf(chromiumInstalled)('routeRemoteImages in a real browser', () => {
// A story page whose only image lives on the stalling host.
server = http.createServer((request, response) => {
response.setHeader('content-type', 'text/html');
+ if (request.url === '/with-script') {
+ // A page that also loads a script from the stalling host.
+ response.end(
+ `<!doctype html><img id="photo" alt="photo" src="http://${REMOTE_HOST}/photo.jpg"><script src="http://${REMOTE_HOST}/app.js"></script>`,
+ );
+ return;
+ }
response.end(
`<!doctype html><img id="photo" alt="photo" src="http://${REMOTE_HOST}/photo.jpg">`,
);
@@ -101,6 +143,45 @@ describe.runIf(chromiumInstalled)('routeRemoteImages in a real browser', () => {
}
}, 30_000);
+ it('with abortOther, a remote script fails at once and the page still loads', async () => {
+ const browser = await launch();
+ try {
+ const context = await browser.newContext();
+ await routeRemoteImages(context, origin, {abortOther: true});
+ const page = await context.newPage();
+ const failed = [];
+ page.on('requestfailed', request => failed.push(request.url()));
+ const started = Date.now();
+ await page.goto(`${origin}/with-script`, {
+ waitUntil: 'load',
+ timeout: 10_000,
+ });
+ const elapsed = Date.now() - started;
+ const width = await page.evaluate(
+ () => document.getElementById('photo').naturalWidth,
+ );
+ expect(elapsed).toBeLessThan(5_000);
+ expect(width).toBe(400);
+ expect(failed).toEqual([`http://${REMOTE_HOST}/app.js`]);
+ } finally {
+ await browser.close();
+ }
+ }, 30_000);
+
+ it('without abortOther, the remote script still holds the page', async () => {
+ const browser = await launch();
+ try {
+ const context = await browser.newContext();
+ await routeRemoteImages(context, origin);
+ const page = await context.newPage();
+ await expect(
+ page.goto(`${origin}/with-script`, {waitUntil: 'load', timeout: 3_000}),
+ ).rejects.toThrow(/Timeout/);
+ } finally {
+ await browser.close();
+ }
+ }, 30_000);
+
it('without the route, the same page waits on the unreachable host', async () => {
const browser = await launch();
try {
diff --git a/eslint.config.js b/eslint.config.js
index 2c4f5ec82e..98c32c219d 100644
--- a/eslint.config.js
+++ b/eslint.config.js
@@ -911,6 +911,29 @@ export default defineConfig(
'no-restricted-syntax': 'off',
},
},
+ // Browser specs use the shared base test, whose contexts answer remote
+ // images locally and block other remote requests. A remote host that is
+ // slow then cannot stall a spec.
+ {
+ files: ['**/*.browser.spec.ts', '**/*.chromium.spec.ts'],
+ rules: {
+ 'no-restricted-imports': [
+ 'error',
+ {
+ paths: [
+ '@playwright/test',
+ 'playwright/test',
+ 'playwright',
+ 'playwright-core',
+ ].map(name => ({
+ name,
+ message:
+ "Import from '@astryxdesign/a11y-spec/playwright' instead: its `test` keeps every browser context off remote hosts.",
+ })),
+ },
+ ],
+ },
+ },
// Inside a package's own shipped source, import the module that defines a
// name, not a folder's index (a barrel): a lazily imported module that goes
// through a barrel pulls every sibling export into its graph, which broke
diff --git a/internal/a11y-spec/README.md b/internal/a11y-spec/README.md
index 5d3985a574..9c169b9c30 100644
--- a/internal/a11y-spec/README.md
+++ b/internal/a11y-spec/README.md
@@ -39,6 +39,7 @@ src/
│ └── chromium.ts observes DOM + accessibility tree + real browser.
├── spoken.ts how a visible label is compared against a computed name
├── storybook.ts a static server over a built Storybook, for the browser lane
+├── playwright.ts the base test of every browser spec: contexts stay off remote hosts
└── patterns/
├── radio-group.* the radio-group pattern, same four files
├── checkbox.* the checkbox pattern, same four files
@@ -397,6 +398,13 @@ npx playwright install chromium
pnpm test:a11y-contract
```
+Every browser spec imports `test` from `@astryxdesign/a11y-spec/playwright`.
+Its contexts answer remote images with a local stand-in and block other remote
+requests; the loopback host passes. The rule covers every context made from
+the test's `browser`. A spec that launches its own browser
+(`chromium.launch()`) must call `keepRequestsLocal(context)` on each context
+it makes, before the first navigation.
+
## What this package does not claim
It does not report what an assistive technology says. Speech, braille,
diff --git a/internal/a11y-spec/package.json b/internal/a11y-spec/package.json
index e8eeaeb061..185f24aca2 100644
--- a/internal/a11y-spec/package.json
+++ b/internal/a11y-spec/package.json
@@ -8,6 +8,7 @@
"exports": {
".": "./src/index.ts",
"./chromium": "./src/harness/chromium.ts",
+ "./playwright": "./src/playwright.ts",
"./storybook": "./src/storybook.ts"
},
"scripts": {
diff --git a/internal/a11y-spec/src/harness/chromium.chromium.spec.ts b/internal/a11y-spec/src/harness/chromium.chromium.spec.ts
index 3b3129f6a7..f7174bae24 100644
--- a/internal/a11y-spec/src/harness/chromium.chromium.spec.ts
+++ b/internal/a11y-spec/src/harness/chromium.chromium.spec.ts
@@ -8,7 +8,7 @@
* @position Harness regression coverage; proves browser AX properties are exposed without DOM substitution.
*/
-import {expect, test} from '@playwright/test';
+import {expect, test} from '../playwright';
import {createChromiumHarness, holdMotionStill} from './chromium';
test('computed node exposes selected state for tabs', async ({page}) => {
diff --git a/internal/a11y-spec/src/harness/hermetic.chromium.spec.ts b/internal/a11y-spec/src/harness/hermetic.chromium.spec.ts
new file mode 100644
index 0000000000..aed0c2b70f
--- /dev/null
+++ b/internal/a11y-spec/src/harness/hermetic.chromium.spec.ts
@@ -0,0 +1,107 @@
+// Copyright (c) Meta Platforms, Inc. and affiliates.
+// @pr-a11y scope ^(internal/a11y-spec/src/playwright|\.github/scripts/lib/offline-media)
+
+/**
+ * @file hermetic.chromium.spec.ts
+ * @input The shared base test (`../playwright`) and a local page that loads a
+ * remote image, a remote stylesheet and a local file
+ * @output Browser evidence that every context of the base test answers remote
+ * images locally, blocks other remote requests and passes local ones
+ * @position Proof for the base test that every browser spec imports.
+ */
+
+import http from 'node:http';
+import type {AddressInfo} from 'node:net';
+import {expect, test, type Page} from '../playwright';
+
+// `.test` names never resolve, so a request that reaches the network fails
+// with a name error. Only the route can fulfil or block one.
+const PAGE = `<!doctype html>
+<link rel="stylesheet" href="https://fonts.example.test/font.css">
+<img id="photo" alt="photo" src="https://photos.example.test/photo.jpg">
+<script>
+ window.localStatus = fetch('/local.json').then(response => response.status);
+</script>`;
+
+// A request the route aborts fails as blocked by the client; one that reached
+// the network would fail with a name error instead.
+const BLOCKED = expect.stringContaining('net::ERR_BLOCKED_BY_CLIENT');
+
+let server: http.Server;
+let origin: string;
+
+test.beforeAll(async () => {
+ server = http.createServer((request, response) => {
+ if (request.url === '/local.json') {
+ response.setHeader('content-type', 'application/json');
+ response.end('{}');
+ return;
+ }
+ response.setHeader('content-type', 'text/html');
+ response.end(PAGE);
+ });
+ await new Promise<void>(resolve => server.listen(0, '127.0.0.1', resolve));
+ origin = `http://127.0.0.1:${(server.address() as AddressInfo).port}`;
+});
+
+test.afterAll(async () => {
+ await new Promise(resolve => server?.close(resolve));
+});
+
+async function loadAndObserve(page: Page) {
+ const failed = new Map<string, string>();
+ page.on('requestfailed', request => {
+ failed.set(request.url(), request.failure()?.errorText ?? '');
+ });
+ await page.goto(`${origin}/`, {waitUntil: 'load'});
+ const facts = await page.evaluate(async () => {
+ const photo = document.getElementById('photo') as HTMLImageElement;
+ const status = await (window as unknown as {localStatus: Promise<number>})
+ .localStatus;
+ return {photoWidth: photo.naturalWidth, localStatus: status};
+ });
+ return {
+ ...facts,
+ stylesheetError: failed.get('https://fonts.example.test/font.css'),
+ };
+}
+
+test('the page fixture answers remote images locally and blocks other remote requests', async ({
+ page,
+}) => {
+ expect(await loadAndObserve(page)).toEqual({
+ photoWidth: 400,
+ localStatus: 200,
+ stylesheetError: BLOCKED,
+ });
+});
+
+test('a context the spec makes from the browser has the same rule', async ({
+ browser,
+}) => {
+ const context = await browser.newContext();
+ try {
+ expect(await loadAndObserve(await context.newPage())).toEqual({
+ photoWidth: 400,
+ localStatus: 200,
+ stylesheetError: BLOCKED,
+ });
+ } finally {
+ await context.close();
+ }
+});
+
+test('a page the spec opens with browser.newPage has the same rule', async ({
+ browser,
+}) => {
+ const page = await browser.newPage();
+ try {
+ expect(await loadAndObserve(page)).toEqual({
+ photoWidth: 400,
+ localStatus: 200,
+ stylesheetError: BLOCKED,
+ });
+ } finally {
+ await page.close();
+ }
+});
diff --git a/internal/a11y-spec/src/patterns/accordion.chromium.spec.ts b/internal/a11y-spec/src/patterns/accordion.chromium.spec.ts
index 9b3219e308..c965e80f53 100644
--- a/internal/a11y-spec/src/patterns/accordion.chromium.spec.ts
+++ b/internal/a11y-spec/src/patterns/accordion.chromium.spec.ts
@@ -8,7 +8,7 @@
* @position Contract self-test, Chromium lane
*/
-import {expect, test, type CDPSession, type Page} from '@playwright/test';
+import {expect, test, type CDPSession, type Page} from '../playwright';
import {describeExpectation, requiredLayers} from '../contract';
import {checkAccessibilitySpec, type ExpectationResult} from '../check';
import {
diff --git a/internal/a11y-spec/src/patterns/alert-dialog.chromium.spec.ts b/internal/a11y-spec/src/patterns/alert-dialog.chromium.spec.ts
index 005844923c..f8474f41d1 100644
--- a/internal/a11y-spec/src/patterns/alert-dialog.chromium.spec.ts
+++ b/internal/a11y-spec/src/patterns/alert-dialog.chromium.spec.ts
@@ -8,7 +8,7 @@
* @position Contract self-test, Chromium lane
*/
-import {expect, test, type CDPSession, type Page} from '@playwright/test';
+import {expect, test, type CDPSession, type Page} from '../playwright';
import {describeExpectation, requiredLayers} from '../contract';
import {checkAccessibilitySpec, type ExpectationResult} from '../check';
import {
diff --git a/internal/a11y-spec/src/patterns/breadcrumb.chromium.spec.ts b/internal/a11y-spec/src/patterns/breadcrumb.chromium.spec.ts
index 86bc7eb40f..3205946e40 100644
--- a/internal/a11y-spec/src/patterns/breadcrumb.chromium.spec.ts
+++ b/internal/a11y-spec/src/patterns/breadcrumb.chromium.spec.ts
@@ -9,7 +9,7 @@ import {
type CDPSession,
type Locator,
type Page,
-} from '@playwright/test';
+} from '../playwright';
import {describeExpectation, requiredLayers} from '../contract';
import {checkAccessibilitySpec, type ExpectationResult} from '../check';
import {
diff --git a/internal/a11y-spec/src/patterns/button.chromium.spec.ts b/internal/a11y-spec/src/patterns/button.chromium.spec.ts
index abdc5cdf0f..2f3d5b48b8 100644
--- a/internal/a11y-spec/src/patterns/button.chromium.spec.ts
+++ b/internal/a11y-spec/src/patterns/button.chromium.spec.ts
@@ -21,7 +21,7 @@
* jsdom half.
*/
-import {expect, test, type CDPSession, type Page} from '@playwright/test';
+import {expect, test, type CDPSession, type Page} from '../playwright';
import {describeExpectation, requiredLayers} from '../contract';
import {
CHROMIUM_OBSERVES,
diff --git a/internal/a11y-spec/src/patterns/carousel.chromium.spec.ts b/internal/a11y-spec/src/patterns/carousel.chromium.spec.ts
index 36ef1a0fc9..270c9c0076 100644
--- a/internal/a11y-spec/src/patterns/carousel.chromium.spec.ts
+++ b/internal/a11y-spec/src/patterns/carousel.chromium.spec.ts
@@ -8,7 +8,7 @@
* @position Contract self-test; proves the reusable contract, not Astryx components.
*/
-import {expect, test, type CDPSession, type Page} from '@playwright/test';
+import {expect, test, type CDPSession, type Page} from '../playwright';
import {checkAccessibilitySpec, type ExpectationResult} from '../check';
import {describeExpectation, requiredLayers} from '../contract';
import {
diff --git a/internal/a11y-spec/src/patterns/checkbox.chromium.spec.ts b/internal/a11y-spec/src/patterns/checkbox.chromium.spec.ts
index 6d5ee55819..2b7933ce7a 100644
--- a/internal/a11y-spec/src/patterns/checkbox.chromium.spec.ts
+++ b/internal/a11y-spec/src/patterns/checkbox.chromium.spec.ts
@@ -21,7 +21,7 @@
* jsdom half.
*/
-import {expect, test, type CDPSession, type Page} from '@playwright/test';
+import {expect, test, type CDPSession, type Page} from '../playwright';
import {describeExpectation, requiredLayers} from '../contract';
import {
CHROMIUM_OBSERVES,
diff --git a/internal/a11y-spec/src/patterns/combobox.chromium.spec.ts b/internal/a11y-spec/src/patterns/combobox.chromium.spec.ts
index 63c79fe789..350c27f685 100644
--- a/internal/a11y-spec/src/patterns/combobox.chromium.spec.ts
+++ b/internal/a11y-spec/src/patterns/combobox.chromium.spec.ts
@@ -9,7 +9,7 @@ import {
type CDPSession,
type Locator,
type Page,
-} from '@playwright/test';
+} from '../playwright';
import {describeExpectation, requiredLayers} from '../contract';
import {checkAccessibilitySpec, type ExpectationResult} from '../check';
import {
diff --git a/internal/a11y-spec/src/patterns/disclosure.chromium.spec.ts b/internal/a11y-spec/src/patterns/disclosure.chromium.spec.ts
index 25754d7c0b..d3132fd0a0 100644
--- a/internal/a11y-spec/src/patterns/disclosure.chromium.spec.ts
+++ b/internal/a11y-spec/src/patterns/disclosure.chromium.spec.ts
@@ -8,7 +8,7 @@
* @position Contract self-tests, independent of any component implementation.
*/
-import {expect, test, type CDPSession, type Page} from '@playwright/test';
+import {expect, test, type CDPSession, type Page} from '../playwright';
import {describeExpectation, requiredLayers} from '../contract';
import {checkAccessibilitySpec, type ExpectationResult} from '../check';
import {
diff --git a/internal/a11y-spec/src/patterns/grid.chromium.spec.ts b/internal/a11y-spec/src/patterns/grid.chromium.spec.ts
index 469bf033bf..9d49aa7b2b 100644
--- a/internal/a11y-spec/src/patterns/grid.chromium.spec.ts
+++ b/internal/a11y-spec/src/patterns/grid.chromium.spec.ts
@@ -8,7 +8,7 @@
* @position Contract self-test, Chromium lane
*/
-import {expect, test, type CDPSession, type Page} from '@playwright/test';
+import {expect, test, type CDPSession, type Page} from '../playwright';
import {describeExpectation, requiredLayers} from '../contract';
import {checkAccessibilitySpec, type ExpectationResult} from '../check';
import {
diff --git a/internal/a11y-spec/src/patterns/landmark.chromium.spec.ts b/internal/a11y-spec/src/patterns/landmark.chromium.spec.ts
index 0646db9271..4249207cfc 100644
--- a/internal/a11y-spec/src/patterns/landmark.chromium.spec.ts
+++ b/internal/a11y-spec/src/patterns/landmark.chromium.spec.ts
@@ -9,7 +9,7 @@ import {
type CDPSession,
type Locator,
type Page,
-} from '@playwright/test';
+} from '../playwright';
import {describeExpectation, requiredLayers} from '../contract';
import {checkAccessibilitySpec, type ExpectationResult} from '../check';
import {
diff --git a/internal/a11y-spec/src/patterns/link.chromium.spec.ts b/internal/a11y-spec/src/patterns/link.chromium.spec.ts
index 7edfad6d10..f8a117ba4e 100644
--- a/internal/a11y-spec/src/patterns/link.chromium.spec.ts
+++ b/internal/a11y-spec/src/patterns/link.chromium.spec.ts
@@ -15,7 +15,7 @@
* stays mounted for the next observation.
*/
-import {expect, test, type CDPSession, type Page} from '@playwright/test';
+import {expect, test, type CDPSession, type Page} from '../playwright';
import {describeExpectation, requiredLayers} from '../contract';
import {checkAccessibilitySpec, type ExpectationResult} from '../check';
import {
diff --git a/internal/a11y-spec/src/patterns/listbox.chromium.spec.ts b/internal/a11y-spec/src/patterns/listbox.chromium.spec.ts
index 469770fd04..b67ad765c3 100644
--- a/internal/a11y-spec/src/patterns/listbox.chromium.spec.ts
+++ b/internal/a11y-spec/src/patterns/listbox.chromium.spec.ts
@@ -8,7 +8,7 @@
* @position Contract fixtures; no component or assistive-technology claim.
*/
-import {expect, test} from '@playwright/test';
+import {expect, test} from '../playwright';
import {checkAccessibilitySpec} from '../check';
import {createChromiumHarness} from '../harness/chromium';
import {LISTBOX_PATTERN, type ListboxStateFacts} from './listbox';
diff --git a/internal/a11y-spec/src/patterns/menu-button.chromium.spec.ts b/internal/a11y-spec/src/patterns/menu-button.chromium.spec.ts
index d4367e43bc..98dda2eae0 100644
--- a/internal/a11y-spec/src/patterns/menu-button.chromium.spec.ts
+++ b/internal/a11y-spec/src/patterns/menu-button.chromium.spec.ts
@@ -8,7 +8,7 @@
* @position Contract self-test, Chromium lane
*/
-import {expect, test, type CDPSession, type Page} from '@playwright/test';
+import {expect, test, type CDPSession, type Page} from '../playwright';
import {describeExpectation, requiredLayers} from '../contract';
import {checkAccessibilitySpec, type ExpectationResult} from '../check';
import {
diff --git a/internal/a11y-spec/src/patterns/menu.chromium.spec.ts b/internal/a11y-spec/src/patterns/menu.chromium.spec.ts
index 6f93e1eef5..f658eb9fa1 100644
--- a/internal/a11y-spec/src/patterns/menu.chromium.spec.ts
+++ b/internal/a11y-spec/src/patterns/menu.chromium.spec.ts
@@ -8,7 +8,7 @@
* @position Contract self-test, Chromium lane
*/
-import {expect, test, type CDPSession, type Page} from '@playwright/test';
+import {expect, test, type CDPSession, type Page} from '../playwright';
import {describeExpectation, requiredLayers} from '../contract';
import {checkAccessibilitySpec, type ExpectationResult} from '../check';
import {
diff --git a/internal/a11y-spec/src/patterns/modal-dialog.chromium.spec.ts b/internal/a11y-spec/src/patterns/modal-dialog.chromium.spec.ts
index 347084bf46..0c121b6c4e 100644
--- a/internal/a11y-spec/src/patterns/modal-dialog.chromium.spec.ts
+++ b/internal/a11y-spec/src/patterns/modal-dialog.chromium.spec.ts
@@ -9,7 +9,7 @@
* @position Real-browser self-test of the contract, not a component binding.
*/
-import {expect, test, type CDPSession, type Page} from '@playwright/test';
+import {expect, test, type CDPSession, type Page} from '../playwright';
import {
MissingBindingCapability,
checkAccessibilitySpec,
diff --git a/internal/a11y-spec/src/patterns/progressbar.chromium.spec.ts b/internal/a11y-spec/src/patterns/progressbar.chromium.spec.ts
index 61a9179c4d..5a42c8f2e7 100644
--- a/internal/a11y-spec/src/patterns/progressbar.chromium.spec.ts
+++ b/internal/a11y-spec/src/patterns/progressbar.chromium.spec.ts
@@ -8,7 +8,7 @@
* @position Contract self-test, Chromium lane
*/
-import {expect, test, type CDPSession, type Page} from '@playwright/test';
+import {expect, test, type CDPSession, type Page} from '../playwright';
import {describeExpectation, requiredLayers} from '../contract';
import {checkAccessibilitySpec, type ExpectationResult} from '../check';
import {
diff --git a/internal/a11y-spec/src/patterns/radio-group.chromium.spec.ts b/internal/a11y-spec/src/patterns/radio-group.chromium.spec.ts
index e7be54fbcc..cc9ce4b3ea 100644
--- a/internal/a11y-spec/src/patterns/radio-group.chromium.spec.ts
+++ b/internal/a11y-spec/src/patterns/radio-group.chromium.spec.ts
@@ -8,7 +8,7 @@
* @position Contract self-test; proves the reusable contract, not Astryx components.
*/
-import {expect, test, type CDPSession, type Page} from '@playwright/test';
+import {expect, test, type CDPSession, type Page} from '../playwright';
import {checkAccessibilitySpec, type ExpectationResult} from '../check';
import {describeExpectation, requiredLayers} from '../contract';
import {
diff --git a/internal/a11y-spec/src/patterns/slider.chromium.spec.ts b/internal/a11y-spec/src/patterns/slider.chromium.spec.ts
index 931fbeb6de..94b5a96b4f 100644
--- a/internal/a11y-spec/src/patterns/slider.chromium.spec.ts
+++ b/internal/a11y-spec/src/patterns/slider.chromium.spec.ts
@@ -8,7 +8,7 @@
* @position Contract self-test, Chromium lane
*/
-import {expect, test, type CDPSession, type Page} from '@playwright/test';
+import {expect, test, type CDPSession, type Page} from '../playwright';
import {describeExpectation, requiredLayers} from '../contract';
import {checkAccessibilitySpec, type ExpectationResult} from '../check';
import {
diff --git a/internal/a11y-spec/src/patterns/spinbutton.chromium.spec.ts b/internal/a11y-spec/src/patterns/spinbutton.chromium.spec.ts
index 903907ddf6..946355a997 100644
--- a/internal/a11y-spec/src/patterns/spinbutton.chromium.spec.ts
+++ b/internal/a11y-spec/src/patterns/spinbutton.chromium.spec.ts
@@ -3,7 +3,7 @@
/** Chromium positive, exact-debt, and mutation proof for the shared Spinbutton contract. */
-import {expect, test, type Page} from '@playwright/test';
+import {expect, test, type Page} from '../playwright';
import {
checkAccessibilitySpec,
requiredLayers,
diff --git a/internal/a11y-spec/src/patterns/status-message.chromium.spec.ts b/internal/a11y-spec/src/patterns/status-message.chromium.spec.ts
index 534a1daf8f..ef5592bfcc 100644
--- a/internal/a11y-spec/src/patterns/status-message.chromium.spec.ts
+++ b/internal/a11y-spec/src/patterns/status-message.chromium.spec.ts
@@ -8,7 +8,7 @@
* @position Real-browser self-test of the contract, not a component binding
*/
-import {expect, test, type CDPSession, type Page} from '@playwright/test';
+import {expect, test, type CDPSession, type Page} from '../playwright';
import {checkAccessibilitySpec, type ExpectationResult} from '../check';
import {describeExpectation, requiredLayers} from '../contract';
import {CHROMIUM_OBSERVES, createChromiumHarness} from '../harness/chromium';
diff --git a/internal/a11y-spec/src/patterns/switch.chromium.spec.ts b/internal/a11y-spec/src/patterns/switch.chromium.spec.ts
index 2274d5c4a2..502fd25b03 100644
--- a/internal/a11y-spec/src/patterns/switch.chromium.spec.ts
+++ b/internal/a11y-spec/src/patterns/switch.chromium.spec.ts
@@ -21,7 +21,7 @@
* jsdom half.
*/
-import {expect, test, type CDPSession, type Page} from '@playwright/test';
+import {expect, test, type CDPSession, type Page} from '../playwright';
import {describeExpectation, requiredLayers} from '../contract';
import {
CHROMIUM_OBSERVES,
diff --git a/internal/a11y-spec/src/patterns/table.chromium.spec.ts b/internal/a11y-spec/src/patterns/table.chromium.spec.ts
index e4de91fb65..2057fbe5d2 100644
--- a/internal/a11y-spec/src/patterns/table.chromium.spec.ts
+++ b/internal/a11y-spec/src/patterns/table.chromium.spec.ts
@@ -9,7 +9,7 @@ import {
type CDPSession,
type Locator,
type Page,
-} from '@playwright/test';
+} from '../playwright';
import {describeExpectation, requiredLayers} from '../contract';
import {checkAccessibilitySpec, type ExpectationResult} from '../check';
import {
diff --git a/internal/a11y-spec/src/patterns/tabs.chromium.spec.ts b/internal/a11y-spec/src/patterns/tabs.chromium.spec.ts
index d4bb9d3beb..9ae0390f08 100644
--- a/internal/a11y-spec/src/patterns/tabs.chromium.spec.ts
+++ b/internal/a11y-spec/src/patterns/tabs.chromium.spec.ts
@@ -8,7 +8,7 @@
* @position Contract self-test; proves the reusable contract, not Astryx components.
*/
-import {expect, test, type CDPSession, type Page} from '@playwright/test';
+import {expect, test, type CDPSession, type Page} from '../playwright';
import {checkAccessibilitySpec, type ExpectationResult} from '../check';
import {describeExpectation, requiredLayers} from '../contract';
import {
diff --git a/internal/a11y-spec/src/patterns/text-input.chromium.spec.ts b/internal/a11y-spec/src/patterns/text-input.chromium.spec.ts
index dcb4c2e3be..a3b422ce19 100644
--- a/internal/a11y-spec/src/patterns/text-input.chromium.spec.ts
+++ b/internal/a11y-spec/src/patterns/text-input.chromium.spec.ts
@@ -8,7 +8,7 @@
* @position Contract self-test; component bindings use checked-in Storybook stories.
*/
-import {expect, test, type CDPSession, type Page} from '@playwright/test';
+import {expect, test, type CDPSession, type Page} from '../playwright';
import {describeExpectation, requiredLayers} from '../contract';
import {checkAccessibilitySpec, type ExpectationResult} from '../check';
import {
diff --git a/internal/a11y-spec/src/patterns/toggle-button.chromium.spec.ts b/internal/a11y-spec/src/patterns/toggle-button.chromium.spec.ts
index bfd658882b..6bd43d297a 100644
--- a/internal/a11y-spec/src/patterns/toggle-button.chromium.spec.ts
+++ b/internal/a11y-spec/src/patterns/toggle-button.chromium.spec.ts
@@ -8,7 +8,7 @@
* @position Contract self-test, independent of Astryx component implementation.
*/
-import {expect, test, type CDPSession, type Page} from '@playwright/test';
+import {expect, test, type CDPSession, type Page} from '../playwright';
import {describeExpectation, requiredLayers} from '../contract';
import {checkAccessibilitySpec, type ExpectationResult} from '../check';
import {
diff --git a/internal/a11y-spec/src/patterns/toolbar.chromium.spec.ts b/internal/a11y-spec/src/patterns/toolbar.chromium.spec.ts
index 674235965d..f37e28bdc3 100644
--- a/internal/a11y-spec/src/patterns/toolbar.chromium.spec.ts
+++ b/internal/a11y-spec/src/patterns/toolbar.chromium.spec.ts
@@ -8,7 +8,7 @@
* @position Contract self-test, Chromium lane
*/
-import {expect, test, type CDPSession, type Page} from '@playwright/test';
+import {expect, test, type CDPSession, type Page} from '../playwright';
import {describeExpectation, requiredLayers} from '../contract';
import {checkAccessibilitySpec, type ExpectationResult} from '../check';
import {
diff --git a/internal/a11y-spec/src/patterns/tooltip.chromium.spec.ts b/internal/a11y-spec/src/patterns/tooltip.chromium.spec.ts
index 1250dea8dc..f463c0c928 100644
--- a/internal/a11y-spec/src/patterns/tooltip.chromium.spec.ts
+++ b/internal/a11y-spec/src/patterns/tooltip.chromium.spec.ts
@@ -8,7 +8,7 @@
* @position Contract self-test, Chromium lane
*/
-import {expect, test, type CDPSession, type Page} from '@playwright/test';
+import {expect, test, type CDPSession, type Page} from '../playwright';
import {describeExpectation, requiredLayers} from '../contract';
import {checkAccessibilitySpec, type ExpectationResult} from '../check';
import {
diff --git a/internal/a11y-spec/src/patterns/tree-view.chromium.spec.ts b/internal/a11y-spec/src/patterns/tree-view.chromium.spec.ts
index 17fd29d8e1..0843a164d0 100644
--- a/internal/a11y-spec/src/patterns/tree-view.chromium.spec.ts
+++ b/internal/a11y-spec/src/patterns/tree-view.chromium.spec.ts
@@ -8,7 +8,7 @@
* @position Contract self-test, Chromium lane
*/
-import {expect, test, type CDPSession, type Page} from '@playwright/test';
+import {expect, test, type CDPSession, type Page} from '../playwright';
import {describeExpectation, requiredLayers} from '../contract';
import {checkAccessibilitySpec, type ExpectationResult} from '../check';
import {
diff --git a/internal/a11y-spec/src/patterns/window-splitter.chromium.spec.ts b/internal/a11y-spec/src/patterns/window-splitter.chromium.spec.ts
index a061060189..8335ba24bc 100644
--- a/internal/a11y-spec/src/patterns/window-splitter.chromium.spec.ts
+++ b/internal/a11y-spec/src/patterns/window-splitter.chromium.spec.ts
@@ -8,7 +8,7 @@
* @position Contract self-test, Chromium lane
*/
-import {expect, test, type CDPSession, type Page} from '@playwright/test';
+import {expect, test, type CDPSession, type Page} from '../playwright';
import {describeExpectation, requiredLayers} from '../contract';
import {checkAccessibilitySpec, type ExpectationResult} from '../check';
import {
diff --git a/internal/a11y-spec/src/playwright.ts b/internal/a11y-spec/src/playwright.ts
new file mode 100644
index 0000000000..f9e10b36c2
--- /dev/null
+++ b/internal/a11y-spec/src/playwright.ts
@@ -0,0 +1,57 @@
+// Copyright (c) Meta Platforms, Inc. and affiliates.
+
+/**
+ * @file playwright.ts
+ * @input Uses @playwright/test and .github/scripts/lib/offline-media.js
+ * @output `test`: Playwright's base test with hermetic browser contexts, and
+ * every other export of @playwright/test unchanged. `keepRequestsLocal`:
+ * the same network rule for a context the spec makes from its own browser.
+ * @position The one base test for the browser specs that playwright.config.ts
+ * and playwright.interaction.config.ts run. Specs import `test` from here,
+ * not from @playwright/test; a lint rule enforces it.
+ *
+ * In a hermetic context, a remote image gets a local stand-in and any other
+ * remote request fails at once. Requests to the loopback host pass: the
+ * Storybook and fixture servers of the specs listen there.
+ */
+
+import {
+ test as base,
+ type Browser,
+ type BrowserContext,
+} from '@playwright/test';
+import {routeRemoteImages} from '../../../.github/scripts/lib/offline-media.js';
+
+export * from '@playwright/test';
+
+/** Makes `context` hermetic. Await it before the first navigation. */
+export async function keepRequestsLocal(
+ context: BrowserContext,
+): Promise<void> {
+ await routeRemoteImages(context, undefined, {abortOther: true});
+}
+
+/**
+ * Every context starts from `browser.newContext`: the `context` and `page`
+ * fixtures, `browser.newPage`, and a spec's own call. So the rule is set at
+ * that one point, once per worker. A browser that the spec launches itself is
+ * a different `Browser`: call `keepRequestsLocal` on each of its contexts.
+ */
+function makeContextsHermetic(browser: Browser): void {
+ const newContext = browser.newContext.bind(browser);
+ browser.newContext = async options => {
+ const context = await newContext(options);
+ await keepRequestsLocal(context);
+ return context;
+ };
+}
+
+export const test = base.extend({
+ browser: [
+ async ({browser}, use) => {
+ makeContextsHermetic(browser);
+ await use(browser);
+ },
+ {scope: 'worker'},
+ ],
+});
diff --git a/internal/interaction-harness/src/harness.interaction.browser.spec.ts b/internal/interaction-harness/src/harness.interaction.browser.spec.ts
index a692ebc7c3..22d9014bee 100644
--- a/internal/interaction-harness/src/harness.interaction.browser.spec.ts
+++ b/internal/interaction-harness/src/harness.interaction.browser.spec.ts
@@ -42,7 +42,12 @@
import fs from 'node:fs';
import path from 'node:path';
-import {expect, test, type Page} from '@playwright/test';
+import {
+ expect,
+ keepRequestsLocal,
+ test,
+ type Page,
+} from '@astryxdesign/a11y-spec/playwright';
import type {CastFrame, TrackedFrame} from './frames';
import {
advanceFrozenPage,
@@ -1198,7 +1203,9 @@ test.describe('frame evidence', () => {
env: {...process.env, MESA_SHADER_CACHE_DIR: fresh},
});
try {
- const page = await own.newPage();
+ const context = await own.newContext();
+ await keepRequestsLocal(context);
+ const page = await context.newPage();
await page.setContent(
'<div id="glass" style="width:120px;height:80px;backdrop-filter:blur(16px) saturate(180%)"></div>',
);
diff --git a/internal/interaction-harness/src/storybook.interaction.browser.spec.ts b/internal/interaction-harness/src/storybook.interaction.browser.spec.ts
index ff307c5b7e..5bc308a777 100644
--- a/internal/interaction-harness/src/storybook.interaction.browser.spec.ts
+++ b/internal/interaction-harness/src/storybook.interaction.browser.spec.ts
@@ -13,7 +13,7 @@
* component proof does
*/
-import {expect, test, type Page} from '@playwright/test';
+import {expect, test, type Page} from '@astryxdesign/a11y-spec/playwright';
import {openStory, withStorybook} from './story';
import {countBetween, traceRendering} from './trace';
diff --git a/packages/core/src/AlertDialog/__tests__/AlertDialog.a11y.chromium.spec.ts b/packages/core/src/AlertDialog/__tests__/AlertDialog.a11y.chromium.spec.ts
index 71b6ea1df8..a92e04f8bc 100644
--- a/packages/core/src/AlertDialog/__tests__/AlertDialog.a11y.chromium.spec.ts
+++ b/packages/core/src/AlertDialog/__tests__/AlertDialog.a11y.chromium.spec.ts
@@ -14,7 +14,7 @@ import {
type CDPSession,
type Locator,
type Page,
-} from '@playwright/test';
+} from '@astryxdesign/a11y-spec/playwright';
import {
ALERT_DIALOG_PATTERN,
blockingResults,
diff --git a/packages/core/src/AlertDialog/__tests__/AlertDialog.interaction.browser.spec.ts b/packages/core/src/AlertDialog/__tests__/AlertDialog.interaction.browser.spec.ts
index 81fb58dfcb..1ed7832f16 100644
--- a/packages/core/src/AlertDialog/__tests__/AlertDialog.interaction.browser.spec.ts
+++ b/packages/core/src/AlertDialog/__tests__/AlertDialog.interaction.browser.spec.ts
@@ -13,7 +13,12 @@
* this folder. Run with `pnpm test:interaction AlertDialog`.
*/
-import {expect, test, type Locator, type Page} from '@playwright/test';
+import {
+ expect,
+ test,
+ type Locator,
+ type Page,
+} from '@astryxdesign/a11y-spec/playwright';
import {
drag,
frames,
diff --git a/packages/core/src/AppShell/__tests__/AppShellLayoutRoot.interaction.browser.spec.ts b/packages/core/src/AppShell/__tests__/AppShellLayoutRoot.interaction.browser.spec.ts
index 3ac15a2631..78c683ab24 100644
--- a/packages/core/src/AppShell/__tests__/AppShellLayoutRoot.interaction.browser.spec.ts
+++ b/packages/core/src/AppShell/__tests__/AppShellLayoutRoot.interaction.browser.spec.ts
@@ -15,7 +15,7 @@
* can only compare the reset values and markup.
*/
-import {expect, test, type Page} from '@playwright/test';
+import {expect, test, type Page} from '@astryxdesign/a11y-spec/playwright';
import {
DEFAULT_STORYBOOK_DIR,
serveStorybook,
diff --git a/packages/core/src/AppShell/__tests__/AppShellMainKeyboard.a11y.browser.spec.ts b/packages/core/src/AppShell/__tests__/AppShellMainKeyboard.a11y.browser.spec.ts
index e5e6740116..138bfbce22 100644
--- a/packages/core/src/AppShell/__tests__/AppShellMainKeyboard.a11y.browser.spec.ts
+++ b/packages/core/src/AppShell/__tests__/AppShellMainKeyboard.a11y.browser.spec.ts
@@ -19,7 +19,13 @@
* only assert the tab stop against mocked geometry.
*/
-import {chromium, expect, test, type Page} from '@playwright/test';
+import {
+ chromium,
+ expect,
+ keepRequestsLocal,
+ test,
+ type Page,
+} from '@astryxdesign/a11y-spec/playwright';
import {
DEFAULT_STORYBOOK_DIR,
serveStorybook,
@@ -458,6 +464,7 @@ test('a Tab-focused main keeps its ring after a window or tab switch', async ({
const context = await browser.newContext({
viewport: {width: 1280, height: 720},
});
+ await keepRequestsLocal(context);
const page = await context.newPage();
await openStory(page, 'long-content');
const main = page.getByRole('main');
diff --git a/packages/core/src/AppShell/__tests__/AppShellSafeArea.a11y.chromium.spec.ts b/packages/core/src/AppShell/__tests__/AppShellSafeArea.a11y.chromium.spec.ts
index aeeae538ba..eafe49d2ee 100644
--- a/packages/core/src/AppShell/__tests__/AppShellSafeArea.a11y.chromium.spec.ts
+++ b/packages/core/src/AppShell/__tests__/AppShellSafeArea.a11y.chromium.spec.ts
@@ -13,7 +13,12 @@
* insets.
*/
-import {expect, test, type CDPSession, type Page} from '@playwright/test';
+import {
+ expect,
+ test,
+ type CDPSession,
+ type Page,
+} from '@astryxdesign/a11y-spec/playwright';
import {
DEFAULT_STORYBOOK_DIR,
serveStorybook,
diff --git a/packages/core/src/AspectRatio/__tests__/AspectRatioFitLayers.a11y.browser.spec.ts b/packages/core/src/AspectRatio/__tests__/AspectRatioFitLayers.a11y.browser.spec.ts
index 07f055eea0..70930834b7 100644
--- a/packages/core/src/AspectRatio/__tests__/AspectRatioFitLayers.a11y.browser.spec.ts
+++ b/packages/core/src/AspectRatio/__tests__/AspectRatioFitLayers.a11y.browser.spec.ts
@@ -12,7 +12,7 @@
import * as fs from 'node:fs';
import {fileURLToPath} from 'node:url';
-import {expect, test, type Page} from '@playwright/test';
+import {expect, test, type Page} from '@astryxdesign/a11y-spec/playwright';
import {
DEFAULT_STORYBOOK_DIR,
serveStorybook,
@@ -43,10 +43,6 @@ const TAILWIND_SETUPS = [
const IMAGE =
"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100'/%3E";
-// The local stand-in for the story's remote photos.
-const PHOTO =
- "<svg xmlns='http://www.w3.org/2000/svg' width='400' height='400'/>";
-
type Fit = 'cover' | 'contain';
let storybook: StaticServer;
@@ -66,11 +62,6 @@ test.afterAll(async () => {
* local source and any extra class.
*/
async function captureStory(page: Page, fit: Fit, mediaClass: string) {
- // The story loads its photos from picsum.photos. A slow response holds the
- // load event that `page.setContent` waits for, so a local image answers them.
- await page.route('**://picsum.photos/**', async route =>
- route.fulfill({contentType: 'image/svg+xml', body: PHOTO}),
- );
await page.goto(
`${storybook.origin}/iframe.html?id=core-aspectratio--fit-modes&viewMode=story`,
);
diff --git a/packages/core/src/Avatar/__tests__/AvatarForcedColors.a11y.chromium.spec.ts b/packages/core/src/Avatar/__tests__/AvatarForcedColors.a11y.chromium.spec.ts
index 6a4e04a749..d99fd9665b 100644
--- a/packages/core/src/Avatar/__tests__/AvatarForcedColors.a11y.chromium.spec.ts
+++ b/packages/core/src/Avatar/__tests__/AvatarForcedColors.a11y.chromium.spec.ts
@@ -14,7 +14,7 @@
* Playwright's WebKit matches the forced-colors query but forces nothing)
*/
-import {expect, test, type Page} from '@playwright/test';
+import {expect, test, type Page} from '@astryxdesign/a11y-spec/playwright';
import {
DEFAULT_STORYBOOK_DIR,
serveStorybook,
diff --git a/packages/core/src/Badge/__tests__/BadgeLargerText.a11y.chromium.spec.ts b/packages/core/src/Badge/__tests__/BadgeLargerText.a11y.chromium.spec.ts
index 095536bdeb..25f9bb474e 100644
--- a/packages/core/src/Badge/__tests__/BadgeLargerText.a11y.chromium.spec.ts
+++ b/packages/core/src/Badge/__tests__/BadgeLargerText.a11y.chromium.spec.ts
@@ -19,7 +19,7 @@
* a real layout engine; jsdom has neither.
*/
-import {expect, test, type Page} from '@playwright/test';
+import {expect, test, type Page} from '@astryxdesign/a11y-spec/playwright';
import {
DEFAULT_STORYBOOK_DIR,
serveStorybook,
diff --git a/packages/core/src/BottomSheet/__tests__/BottomSheetDrag.a11y.chromium.spec.ts b/packages/core/src/BottomSheet/__tests__/BottomSheetDrag.a11y.chromium.spec.ts
index 6f97222f73..29847c2958 100644
--- a/packages/core/src/BottomSheet/__tests__/BottomSheetDrag.a11y.chromium.spec.ts
+++ b/packages/core/src/BottomSheet/__tests__/BottomSheetDrag.a11y.chromium.spec.ts
@@ -9,7 +9,7 @@
* @position Chromium proof for useSheetGestures' live transform path
*/
-import {expect, test, type Page} from '@playwright/test';
+import {expect, test, type Page} from '@astryxdesign/a11y-spec/playwright';
import {
DEFAULT_STORYBOOK_DIR,
serveStorybook,
diff --git a/packages/core/src/BottomSheet/__tests__/BottomSheetExitFocus.a11y.browser.spec.ts b/packages/core/src/BottomSheet/__tests__/BottomSheetExitFocus.a11y.browser.spec.ts
index 4a9e4b9a87..f947e5d724 100644
--- a/packages/core/src/BottomSheet/__tests__/BottomSheetExitFocus.a11y.browser.spec.ts
+++ b/packages/core/src/BottomSheet/__tests__/BottomSheetExitFocus.a11y.browser.spec.ts
@@ -14,7 +14,7 @@
* element it removes, and WebKit sends none.
*/
-import {expect, test, type Page} from '@playwright/test';
+import {expect, test, type Page} from '@astryxdesign/a11y-spec/playwright';
import {
DEFAULT_STORYBOOK_DIR,
serveStorybook,
diff --git a/packages/core/src/BottomSheet/__tests__/BottomSheetFocusReturn.a11y.browser.spec.ts b/packages/core/src/BottomSheet/__tests__/BottomSheetFocusReturn.a11y.browser.spec.ts
index d81885bcab..f7d6167977 100644
--- a/packages/core/src/BottomSheet/__tests__/BottomSheetFocusReturn.a11y.browser.spec.ts
+++ b/packages/core/src/BottomSheet/__tests__/BottomSheetFocusReturn.a11y.browser.spec.ts
@@ -17,7 +17,12 @@
* WebKit also rings it after a tap open and a tap close.
*/
-import {expect, test, type Locator, type Page} from '@playwright/test';
+import {
+ expect,
+ test,
+ type Locator,
+ type Page,
+} from '@astryxdesign/a11y-spec/playwright';
import {
DEFAULT_STORYBOOK_DIR,
serveStorybook,
diff --git a/packages/core/src/BottomSheet/__tests__/BottomSheetKeyboard.a11y.browser.spec.ts b/packages/core/src/BottomSheet/__tests__/BottomSheetKeyboard.a11y.browser.spec.ts
index 411b78cfc9..357f43dc4e 100644
--- a/packages/core/src/BottomSheet/__tests__/BottomSheetKeyboard.a11y.browser.spec.ts
+++ b/packages/core/src/BottomSheet/__tests__/BottomSheetKeyboard.a11y.browser.spec.ts
@@ -9,7 +9,12 @@
* @position Cross-browser proof for useScrollableArea's contentOrViewport policy
*/
-import {expect, test, type Page, type Locator} from '@playwright/test';
+import {
+ expect,
+ test,
+ type Page,
+ type Locator,
+} from '@astryxdesign/a11y-spec/playwright';
import {
DEFAULT_STORYBOOK_DIR,
serveStorybook,
diff --git a/packages/core/src/BottomSheet/__tests__/BottomSheetNativeModal.a11y.browser.spec.ts b/packages/core/src/BottomSheet/__tests__/BottomSheetNativeModal.a11y.browser.spec.ts
index d009bf77e6..e0eaf1a99e 100644
--- a/packages/core/src/BottomSheet/__tests__/BottomSheetNativeModal.a11y.browser.spec.ts
+++ b/packages/core/src/BottomSheet/__tests__/BottomSheetNativeModal.a11y.browser.spec.ts
@@ -25,7 +25,12 @@
* here is desktop WebKit under Playwright, not iOS Safari.
*/
-import {expect, test, type Locator, type Page} from '@playwright/test';
+import {
+ expect,
+ test,
+ type Locator,
+ type Page,
+} from '@astryxdesign/a11y-spec/playwright';
import {
DEFAULT_STORYBOOK_DIR,
serveStorybook,
diff --git a/packages/core/src/BottomSheet/__tests__/BottomSheetPinchZoom.a11y.chromium.spec.ts b/packages/core/src/BottomSheet/__tests__/BottomSheetPinchZoom.a11y.chromium.spec.ts
index 8304bc316e..d962478aca 100644
--- a/packages/core/src/BottomSheet/__tests__/BottomSheetPinchZoom.a11y.chromium.spec.ts
+++ b/packages/core/src/BottomSheet/__tests__/BottomSheetPinchZoom.a11y.chromium.spec.ts
@@ -10,7 +10,12 @@
* @position Chromium proof for the sheet's touch-action and pinch hand-off
*/
-import {expect, test, type CDPSession, type Page} from '@playwright/test';
+import {
+ expect,
+ test,
+ type CDPSession,
+ type Page,
+} from '@astryxdesign/a11y-spec/playwright';
import {
DEFAULT_STORYBOOK_DIR,
serveStorybook,
diff --git a/packages/core/src/BottomSheet/__tests__/BottomSheetScrollEnd.a11y.browser.spec.ts b/packages/core/src/BottomSheet/__tests__/BottomSheetScrollEnd.a11y.browser.spec.ts
index df86f36f83..7f85afdfdc 100644
--- a/packages/core/src/BottomSheet/__tests__/BottomSheetScrollEnd.a11y.browser.spec.ts
+++ b/packages/core/src/BottomSheet/__tests__/BottomSheetScrollEnd.a11y.browser.spec.ts
@@ -15,7 +15,7 @@
* desktop WebKit under Playwright, not iOS Safari.
*/
-import {expect, test} from '@playwright/test';
+import {expect, test} from '@astryxdesign/a11y-spec/playwright';
import {
DEFAULT_STORYBOOK_DIR,
serveStorybook,
diff --git a/packages/core/src/BottomSheet/__tests__/BottomSheetToastOutlet.a11y.chromium.spec.ts b/packages/core/src/BottomSheet/__tests__/BottomSheetToastOutlet.a11y.chromium.spec.ts
index 89d1497103..5f7d7c3478 100644
--- a/packages/core/src/BottomSheet/__tests__/BottomSheetToastOutlet.a11y.chromium.spec.ts
+++ b/packages/core/src/BottomSheet/__tests__/BottomSheetToastOutlet.a11y.chromium.spec.ts
@@ -13,7 +13,7 @@
* lives.
*/
-import {expect, test} from '@playwright/test';
+import {expect, test} from '@astryxdesign/a11y-spec/playwright';
import {holdMotionStill} from '@astryxdesign/a11y-spec/chromium';
import {
DEFAULT_STORYBOOK_DIR,
diff --git a/packages/core/src/Breadcrumbs/__tests__/Breadcrumbs.a11y.chromium.spec.ts b/packages/core/src/Breadcrumbs/__tests__/Breadcrumbs.a11y.chromium.spec.ts
index 7d4be325f8..654881b311 100644
--- a/packages/core/src/Breadcrumbs/__tests__/Breadcrumbs.a11y.chromium.spec.ts
+++ b/packages/core/src/Breadcrumbs/__tests__/Breadcrumbs.a11y.chromium.spec.ts
@@ -9,7 +9,7 @@ import {
type CDPSession,
type Locator,
type Page,
-} from '@playwright/test';
+} from '@astryxdesign/a11y-spec/playwright';
import {
BREADCRUMB_PATTERN,
blockingResults,
diff --git a/packages/core/src/Button/__tests__/Button.a11y.chromium.spec.ts b/packages/core/src/Button/__tests__/Button.a11y.chromium.spec.ts
index 729a90e7f1..c37889b0f9 100644
--- a/packages/core/src/Button/__tests__/Button.a11y.chromium.spec.ts
+++ b/packages/core/src/Button/__tests__/Button.a11y.chromium.spec.ts
@@ -28,7 +28,7 @@ import {
type CDPSession,
type Locator,
type Page,
-} from '@playwright/test';
+} from '@astryxdesign/a11y-spec/playwright';
import {
BUTTON_PATTERN,
blockingResults,
diff --git a/packages/core/src/ButtonGroup/__tests__/ButtonGroupCorners.interaction.browser.spec.ts b/packages/core/src/ButtonGroup/__tests__/ButtonGroupCorners.interaction.browser.spec.ts
index 3be839c2a2..0b2592df82 100644
--- a/packages/core/src/ButtonGroup/__tests__/ButtonGroupCorners.interaction.browser.spec.ts
+++ b/packages/core/src/ButtonGroup/__tests__/ButtonGroupCorners.interaction.browser.spec.ts
@@ -12,7 +12,7 @@
* jsdom never receives these rules
*/
-import {expect, test, type Page} from '@playwright/test';
+import {expect, test, type Page} from '@astryxdesign/a11y-spec/playwright';
import {
DEFAULT_STORYBOOK_DIR,
serveStorybook,
diff --git a/packages/core/src/Calendar/__tests__/Calendar.a11y.chromium.spec.ts b/packages/core/src/Calendar/__tests__/Calendar.a11y.chromium.spec.ts
index 22362217d8..afc24868ca 100644
--- a/packages/core/src/Calendar/__tests__/Calendar.a11y.chromium.spec.ts
+++ b/packages/core/src/Calendar/__tests__/Calendar.a11y.chromium.spec.ts
@@ -14,7 +14,7 @@ import {
type CDPSession,
type Locator,
type Page,
-} from '@playwright/test';
+} from '@astryxdesign/a11y-spec/playwright';
import {
GRID_PATTERN,
blockingResults,
diff --git a/packages/core/src/Carousel/__tests__/Carousel.a11y.chromium.spec.ts b/packages/core/src/Carousel/__tests__/Carousel.a11y.chromium.spec.ts
index 56bc8de74c..325a4a7159 100644
--- a/packages/core/src/Carousel/__tests__/Carousel.a11y.chromium.spec.ts
+++ b/packages/core/src/Carousel/__tests__/Carousel.a11y.chromium.spec.ts
@@ -14,7 +14,7 @@ import {
type CDPSession,
type Locator,
type Page,
-} from '@playwright/test';
+} from '@astryxdesign/a11y-spec/playwright';
import {
CAROUSEL_PATTERN,
blockingResults,
diff --git a/packages/core/src/Chat/__tests__/ChatComposerReturnKey.a11y.chromium.spec.ts b/packages/core/src/Chat/__tests__/ChatComposerReturnKey.a11y.chromium.spec.ts
index a6e6ef192d..3260ee6ef1 100644
--- a/packages/core/src/Chat/__tests__/ChatComposerReturnKey.a11y.chromium.spec.ts
+++ b/packages/core/src/Chat/__tests__/ChatComposerReturnKey.a11y.chromium.spec.ts
@@ -14,7 +14,7 @@
* what the editor a tap focuses carries when the keyboard opens.
*/
-import {expect, test, type Page} from '@playwright/test';
+import {expect, test, type Page} from '@astryxdesign/a11y-spec/playwright';
import {
DEFAULT_STORYBOOK_DIR,
serveStorybook,
diff --git a/packages/core/src/Chat/__tests__/ChatLayoutScrollButton.a11y.chromium.spec.ts b/packages/core/src/Chat/__tests__/ChatLayoutScrollButton.a11y.chromium.spec.ts
index d0f56f16a6..e9f5cc6d15 100644
--- a/packages/core/src/Chat/__tests__/ChatLayoutScrollButton.a11y.chromium.spec.ts
+++ b/packages/core/src/Chat/__tests__/ChatLayoutScrollButton.a11y.chromium.spec.ts
@@ -28,7 +28,12 @@
import {createHash} from 'node:crypto';
import * as fs from 'node:fs';
import * as path from 'node:path';
-import {expect, test, type Locator, type Page} from '@playwright/test';
+import {
+ expect,
+ test,
+ type Locator,
+ type Page,
+} from '@astryxdesign/a11y-spec/playwright';
import {holdMotionStill} from '@astryxdesign/a11y-spec/chromium';
import {
DEFAULT_STORYBOOK_DIR,
diff --git a/packages/core/src/Chat/__tests__/ChatLayoutScrollButtonSurface.a11y.chromium.spec.ts b/packages/core/src/Chat/__tests__/ChatLayoutScrollButtonSurface.a11y.chromium.spec.ts
index ce1d79e2b3..d435605c1a 100644
--- a/packages/core/src/Chat/__tests__/ChatLayoutScrollButtonSurface.a11y.chromium.spec.ts
+++ b/packages/core/src/Chat/__tests__/ChatLayoutScrollButtonSurface.a11y.chromium.spec.ts
@@ -29,7 +29,12 @@
import {createHash} from 'node:crypto';
import * as fs from 'node:fs';
import * as path from 'node:path';
-import {expect, test, type Locator, type Page} from '@playwright/test';
+import {
+ expect,
+ test,
+ type Locator,
+ type Page,
+} from '@astryxdesign/a11y-spec/playwright';
import {holdMotionStill} from '@astryxdesign/a11y-spec/chromium';
import {
DEFAULT_STORYBOOK_DIR,
diff --git a/packages/core/src/Chat/__tests__/ChatMessageAvatar.interaction.browser.spec.ts b/packages/core/src/Chat/__tests__/ChatMessageAvatar.interaction.browser.spec.ts
index fa89373ea6..e0b2cd8e46 100644
--- a/packages/core/src/Chat/__tests__/ChatMessageAvatar.interaction.browser.spec.ts
+++ b/packages/core/src/Chat/__tests__/ChatMessageAvatar.interaction.browser.spec.ts
@@ -11,7 +11,7 @@
* interaction lane; jsdom checks only the compiled selector's shape.
*/
-import {expect, test, type Page} from '@playwright/test';
+import {expect, test, type Page} from '@astryxdesign/a11y-spec/playwright';
import {
DEFAULT_STORYBOOK_DIR,
serveStorybook,
diff --git a/packages/core/src/Chat/__tests__/ChatMessageBubble.a11y.chromium.spec.ts b/packages/core/src/Chat/__tests__/ChatMessageBubble.a11y.chromium.spec.ts
index 0d8d08e252..cbd7924e01 100644
--- a/packages/core/src/Chat/__tests__/ChatMessageBubble.a11y.chromium.spec.ts
+++ b/packages/core/src/Chat/__tests__/ChatMessageBubble.a11y.chromium.spec.ts
@@ -12,7 +12,12 @@ import {createHash} from 'node:crypto';
import {execFileSync} from 'node:child_process';
import * as fs from 'node:fs';
import * as path from 'node:path';
-import {expect, test, type Locator, type Page} from '@playwright/test';
+import {
+ expect,
+ test,
+ type Locator,
+ type Page,
+} from '@astryxdesign/a11y-spec/playwright';
import {holdMotionStill} from '@astryxdesign/a11y-spec/chromium';
import {
DEFAULT_STORYBOOK_DIR,
diff --git a/packages/core/src/Chat/__tests__/ChatMessageList.a11y.chromium.spec.ts b/packages/core/src/Chat/__tests__/ChatMessageList.a11y.chromium.spec.ts
index 61d6cc85d5..af6edd9466 100644
--- a/packages/core/src/Chat/__tests__/ChatMessageList.a11y.chromium.spec.ts
+++ b/packages/core/src/Chat/__tests__/ChatMessageList.a11y.chromium.spec.ts
@@ -12,7 +12,12 @@ import {createHash} from 'node:crypto';
import {execFileSync} from 'node:child_process';
import * as fs from 'node:fs';
import * as path from 'node:path';
-import {expect, test, type Browser, type Page} from '@playwright/test';
+import {
+ expect,
+ test,
+ type Browser,
+ type Page,
+} from '@astryxdesign/a11y-spec/playwright';
import {holdMotionStill} from '@astryxdesign/a11y-spec/chromium';
import {
DEFAULT_STORYBOOK_DIR,
diff --git a/packages/core/src/Chat/__tests__/ChatMessageMetadata.a11y.chromium.spec.ts b/packages/core/src/Chat/__tests__/ChatMessageMetadata.a11y.chromium.spec.ts
index 2edd28fb3b..b7f2a96edd 100644
--- a/packages/core/src/Chat/__tests__/ChatMessageMetadata.a11y.chromium.spec.ts
+++ b/packages/core/src/Chat/__tests__/ChatMessageMetadata.a11y.chromium.spec.ts
@@ -12,7 +12,7 @@ import {createHash} from 'node:crypto';
import {execFileSync} from 'node:child_process';
import * as fs from 'node:fs';
import * as path from 'node:path';
-import {expect, test, type Page} from '@playwright/test';
+import {expect, test, type Page} from '@astryxdesign/a11y-spec/playwright';
import {holdMotionStill} from '@astryxdesign/a11y-spec/chromium';
import {
DEFAULT_STORYBOOK_DIR,
diff --git a/packages/core/src/Chat/__tests__/ChatPastedTextTokenTap.a11y.browser.spec.ts b/packages/core/src/Chat/__tests__/ChatPastedTextTokenTap.a11y.browser.spec.ts
index 2f08bdfe60..c4ab5e3675 100644
--- a/packages/core/src/Chat/__tests__/ChatPastedTextTokenTap.a11y.browser.spec.ts
+++ b/packages/core/src/Chat/__tests__/ChatPastedTextTokenTap.a11y.browser.spec.ts
@@ -13,7 +13,12 @@
* a press need a real browser: jsdom moves neither.
*/
-import {expect, test, type Locator, type Page} from '@playwright/test';
+import {
+ expect,
+ test,
+ type Locator,
+ type Page,
+} from '@astryxdesign/a11y-spec/playwright';
import {
DEFAULT_STORYBOOK_DIR,
serveStorybook,
diff --git a/packages/core/src/Chat/__tests__/ChatSendButton.a11y.chromium.spec.ts b/packages/core/src/Chat/__tests__/ChatSendButton.a11y.chromium.spec.ts
index 34fa05949a..f1e6f9ad85 100644
--- a/packages/core/src/Chat/__tests__/ChatSendButton.a11y.chromium.spec.ts
+++ b/packages/core/src/Chat/__tests__/ChatSendButton.a11y.chromium.spec.ts
@@ -20,7 +20,7 @@ import {
type BrowserContext,
type Locator,
type Page,
-} from '@playwright/test';
+} from '@astryxdesign/a11y-spec/playwright';
// @ts-expect-error -- pngjs ships no declarations; runtime support is pinned.
import {PNG} from 'pngjs';
import {holdMotionStill} from '@astryxdesign/a11y-spec/chromium';
diff --git a/packages/core/src/Chat/__tests__/ChatSystemMessage.a11y.chromium.spec.ts b/packages/core/src/Chat/__tests__/ChatSystemMessage.a11y.chromium.spec.ts
index 3fc41530ea..5eb2354ac4 100644
--- a/packages/core/src/Chat/__tests__/ChatSystemMessage.a11y.chromium.spec.ts
+++ b/packages/core/src/Chat/__tests__/ChatSystemMessage.a11y.chromium.spec.ts
@@ -12,7 +12,12 @@ import {createHash} from 'node:crypto';
import {execFileSync} from 'node:child_process';
import * as fs from 'node:fs';
import * as path from 'node:path';
-import {expect, test, type Browser, type Page} from '@playwright/test';
+import {
+ expect,
+ test,
+ type Browser,
+ type Page,
+} from '@astryxdesign/a11y-spec/playwright';
// @ts-expect-error -- pngjs ships no declarations; runtime support is pinned.
import {PNG} from 'pngjs';
import {holdMotionStill} from '@astryxdesign/a11y-spec/chromium';
diff --git a/packages/core/src/Chat/__tests__/ChatTokenizedText.a11y.chromium.spec.ts b/packages/core/src/Chat/__tests__/ChatTokenizedText.a11y.chromium.spec.ts
index c046c6ac0b..af988e6f15 100644
--- a/packages/core/src/Chat/__tests__/ChatTokenizedText.a11y.chromium.spec.ts
+++ b/packages/core/src/Chat/__tests__/ChatTokenizedText.a11y.chromium.spec.ts
@@ -12,7 +12,7 @@ import {createHash} from 'node:crypto';
import {execFileSync} from 'node:child_process';
import * as fs from 'node:fs';
import * as path from 'node:path';
-import {expect, test, type Page} from '@playwright/test';
+import {expect, test, type Page} from '@astryxdesign/a11y-spec/playwright';
// @ts-expect-error -- pngjs ships no declarations; runtime support is pinned.
import {PNG} from 'pngjs';
import {holdMotionStill} from '@astryxdesign/a11y-spec/chromium';
diff --git a/packages/core/src/Chat/__tests__/useChatStreamScroll.a11y.chromium.spec.ts b/packages/core/src/Chat/__tests__/useChatStreamScroll.a11y.chromium.spec.ts
index 762fa37ee4..7975f1f35c 100644
--- a/packages/core/src/Chat/__tests__/useChatStreamScroll.a11y.chromium.spec.ts
+++ b/packages/core/src/Chat/__tests__/useChatStreamScroll.a11y.chromium.spec.ts
@@ -12,7 +12,7 @@
import {once} from 'node:events';
import {createServer, type Server} from 'node:http';
import {fileURLToPath} from 'node:url';
-import {expect, test, type Page} from '@playwright/test';
+import {expect, test, type Page} from '@astryxdesign/a11y-spec/playwright';
import {build} from 'esbuild';
const SETTLE_TIMEOUT_MS = 6000;
diff --git a/packages/core/src/CheckboxInput/__tests__/Checkbox.a11y.chromium.spec.ts b/packages/core/src/CheckboxInput/__tests__/Checkbox.a11y.chromium.spec.ts
index 49c6f48d53..bf55b73a09 100644
--- a/packages/core/src/CheckboxInput/__tests__/Checkbox.a11y.chromium.spec.ts
+++ b/packages/core/src/CheckboxInput/__tests__/Checkbox.a11y.chromium.spec.ts
@@ -17,7 +17,7 @@ import {
type CDPSession,
type Locator,
type Page,
-} from '@playwright/test';
+} from '@astryxdesign/a11y-spec/playwright';
import {
CHECKBOX_PATTERN,
blockingResults,
diff --git a/packages/core/src/CheckboxList/__tests__/CheckboxList.a11y.chromium.spec.ts b/packages/core/src/CheckboxList/__tests__/CheckboxList.a11y.chromium.spec.ts
index da71f49cf4..1d6509f396 100644
--- a/packages/core/src/CheckboxList/__tests__/CheckboxList.a11y.chromium.spec.ts
+++ b/packages/core/src/CheckboxList/__tests__/CheckboxList.a11y.chromium.spec.ts
@@ -25,7 +25,7 @@ import {
type Browser,
type BrowserContext,
type Page,
-} from '@playwright/test';
+} from '@astryxdesign/a11y-spec/playwright';
// @ts-expect-error -- pngjs ships no declarations; runtime support is pinned.
import {PNG} from 'pngjs';
import {holdMotionStill} from '@astryxdesign/a11y-spec/chromium';
diff --git a/packages/core/src/CheckboxList/__tests__/CheckboxListErrorStatus.a11y.chromium.spec.ts b/packages/core/src/CheckboxList/__tests__/CheckboxListErrorStatus.a11y.chromium.spec.ts
index 34c85f4bf6..1da19ff919 100644
--- a/packages/core/src/CheckboxList/__tests__/CheckboxListErrorStatus.a11y.chromium.spec.ts
+++ b/packages/core/src/CheckboxList/__tests__/CheckboxListErrorStatus.a11y.chromium.spec.ts
@@ -10,7 +10,7 @@
* @position Chromium proof for CheckboxList's per-checkbox invalid state
*/
-import {expect, test} from '@playwright/test';
+import {expect, test} from '@astryxdesign/a11y-spec/playwright';
import {holdMotionStill} from '@astryxdesign/a11y-spec/chromium';
import {
DEFAULT_STORYBOOK_DIR,
diff --git a/packages/core/src/CheckboxList/__tests__/ListGroupDisabled.a11y.chromium.spec.ts b/packages/core/src/CheckboxList/__tests__/ListGroupDisabled.a11y.chromium.spec.ts
index 241470c4de..8c9fbc8fd0 100644
--- a/packages/core/src/CheckboxList/__tests__/ListGroupDisabled.a11y.chromium.spec.ts
+++ b/packages/core/src/CheckboxList/__tests__/ListGroupDisabled.a11y.chromium.spec.ts
@@ -10,7 +10,7 @@
* @position Chromium proof for the group-level aria-disabled on both lists
*/
-import {expect, test, type Page} from '@playwright/test';
+import {expect, test, type Page} from '@astryxdesign/a11y-spec/playwright';
import {holdMotionStill} from '@astryxdesign/a11y-spec/chromium';
import {
DEFAULT_STORYBOOK_DIR,
diff --git a/packages/core/src/CodeBlock/__tests__/CodeBlockCopyClearance.a11y.chromium.spec.ts b/packages/core/src/CodeBlock/__tests__/CodeBlockCopyClearance.a11y.chromium.spec.ts
index a789c2ad92..68cf70be46 100644
--- a/packages/core/src/CodeBlock/__tests__/CodeBlockCopyClearance.a11y.chromium.spec.ts
+++ b/packages/core/src/CodeBlock/__tests__/CodeBlockCopyClearance.a11y.chromium.spec.ts
@@ -9,7 +9,12 @@
* stays readable (Code Body, Copy Button design relationships)
*/
-import {expect, test, type Locator, type Page} from '@playwright/test';
+import {
+ expect,
+ test,
+ type Locator,
+ type Page,
+} from '@astryxdesign/a11y-spec/playwright';
import {
DEFAULT_STORYBOOK_DIR,
serveStorybook,
diff --git a/packages/core/src/CodeBlock/__tests__/CodeBlockLanguages.a11y.chromium.spec.ts b/packages/core/src/CodeBlock/__tests__/CodeBlockLanguages.a11y.chromium.spec.ts
index f140c6c687..bc54967b89 100644
--- a/packages/core/src/CodeBlock/__tests__/CodeBlockLanguages.a11y.chromium.spec.ts
+++ b/packages/core/src/CodeBlock/__tests__/CodeBlockLanguages.a11y.chromium.spec.ts
@@ -10,7 +10,7 @@
* @position CodeBlock FR12, FR13 browser evidence
*/
-import {expect, test, type Page} from '@playwright/test';
+import {expect, test, type Page} from '@astryxdesign/a11y-spec/playwright';
import {
DEFAULT_STORYBOOK_DIR,
serveStorybook,
diff --git a/packages/core/src/CodeBlock/__tests__/CodeBlockOverflowStop.a11y.chromium.spec.ts b/packages/core/src/CodeBlock/__tests__/CodeBlockOverflowStop.a11y.chromium.spec.ts
index 9c999a4973..bb9ae1fd38 100644
--- a/packages/core/src/CodeBlock/__tests__/CodeBlockOverflowStop.a11y.chromium.spec.ts
+++ b/packages/core/src/CodeBlock/__tests__/CodeBlockOverflowStop.a11y.chromium.spec.ts
@@ -8,7 +8,7 @@
* @position CodeBlock FR8 / AST-025 FR12–FR13 proof over the shared scroll capability
*/
-import {expect, test, type Page} from '@playwright/test';
+import {expect, test, type Page} from '@astryxdesign/a11y-spec/playwright';
import {
DEFAULT_STORYBOOK_DIR,
serveStorybook,
diff --git a/packages/core/src/CodeBlock/__tests__/DiffRowPaint.a11y.chromium.spec.ts b/packages/core/src/CodeBlock/__tests__/DiffRowPaint.a11y.chromium.spec.ts
index e68fd0e3c3..39e904e984 100644
--- a/packages/core/src/CodeBlock/__tests__/DiffRowPaint.a11y.chromium.spec.ts
+++ b/packages/core/src/CodeBlock/__tests__/DiffRowPaint.a11y.chromium.spec.ts
@@ -8,7 +8,7 @@
* @position CodeBlock FR9 proof: row paint follows a scrolled line, and wraps
*/
-import {expect, test, type Page} from '@playwright/test';
+import {expect, test, type Page} from '@astryxdesign/a11y-spec/playwright';
import {
DEFAULT_STORYBOOK_DIR,
serveStorybook,
diff --git a/packages/core/src/Collapsible/__tests__/Collapsible.a11y.chromium.spec.ts b/packages/core/src/Collapsible/__tests__/Collapsible.a11y.chromium.spec.ts
index c5a387e52b..700764f44a 100644
--- a/packages/core/src/Collapsible/__tests__/Collapsible.a11y.chromium.spec.ts
+++ b/packages/core/src/Collapsible/__tests__/Collapsible.a11y.chromium.spec.ts
@@ -14,7 +14,7 @@ import {
type CDPSession,
type Locator,
type Page,
-} from '@playwright/test';
+} from '@astryxdesign/a11y-spec/playwright';
import {
DISCLOSURE_PATTERN,
blockingResults,
diff --git a/packages/core/src/Collapsible/__tests__/CollapsibleCloseFocus.a11y.chromium.spec.ts b/packages/core/src/Collapsible/__tests__/CollapsibleCloseFocus.a11y.chromium.spec.ts
index 305bd008b7..7e78d09e70 100644
--- a/packages/core/src/Collapsible/__tests__/CollapsibleCloseFocus.a11y.chromium.spec.ts
+++ b/packages/core/src/Collapsible/__tests__/CollapsibleCloseFocus.a11y.chromium.spec.ts
@@ -13,7 +13,7 @@
* SYNC: When modified, update the AR4 Verification row in Collapsible.spec.md.
*/
-import {expect, test, type Page} from '@playwright/test';
+import {expect, test, type Page} from '@astryxdesign/a11y-spec/playwright';
import {
DEFAULT_STORYBOOK_DIR,
serveStorybook,
diff --git a/packages/core/src/Collapsible/__tests__/CollapsibleGroup.a11y.chromium.spec.ts b/packages/core/src/Collapsible/__tests__/CollapsibleGroup.a11y.chromium.spec.ts
index 982cc6d662..104d725644 100644
--- a/packages/core/src/Collapsible/__tests__/CollapsibleGroup.a11y.chromium.spec.ts
+++ b/packages/core/src/Collapsible/__tests__/CollapsibleGroup.a11y.chromium.spec.ts
@@ -12,7 +12,7 @@ import {createHash} from 'node:crypto';
import {execFileSync} from 'node:child_process';
import * as fs from 'node:fs';
import * as path from 'node:path';
-import {expect, test, type Page} from '@playwright/test';
+import {expect, test, type Page} from '@astryxdesign/a11y-spec/playwright';
import {holdMotionStill} from '@astryxdesign/a11y-spec/chromium';
import {
DEFAULT_STORYBOOK_DIR,
diff --git a/packages/core/src/Collapsible/__tests__/CollapsibleGroupAccordion.a11y.chromium.spec.ts b/packages/core/src/Collapsible/__tests__/CollapsibleGroupAccordion.a11y.chromium.spec.ts
index fe1849c9e3..913fa62697 100644
--- a/packages/core/src/Collapsible/__tests__/CollapsibleGroupAccordion.a11y.chromium.spec.ts
+++ b/packages/core/src/Collapsible/__tests__/CollapsibleGroupAccordion.a11y.chromium.spec.ts
@@ -14,7 +14,7 @@ import {
type CDPSession,
type Locator,
type Page,
-} from '@playwright/test';
+} from '@astryxdesign/a11y-spec/playwright';
import {
ACCORDION_PATTERN,
blockingResults,
diff --git a/packages/core/src/CommandPalette/__tests__/CommandPalette.a11y.chromium.spec.ts b/packages/core/src/CommandPalette/__tests__/CommandPalette.a11y.chromium.spec.ts
index 4b07bc582e..9feb5aaf74 100644
--- a/packages/core/src/CommandPalette/__tests__/CommandPalette.a11y.chromium.spec.ts
+++ b/packages/core/src/CommandPalette/__tests__/CommandPalette.a11y.chromium.spec.ts
@@ -12,7 +12,7 @@ import {createHash} from 'node:crypto';
import {execFileSync} from 'node:child_process';
import * as fs from 'node:fs';
import * as path from 'node:path';
-import {expect, test, type Page} from '@playwright/test';
+import {expect, test, type Page} from '@astryxdesign/a11y-spec/playwright';
import {holdMotionStill} from '@astryxdesign/a11y-spec/chromium';
import {
DEFAULT_STORYBOOK_DIR,
diff --git a/packages/core/src/CommandPalette/__tests__/CommandPaletteEmptyAudit.a11y.chromium.spec.ts b/packages/core/src/CommandPalette/__tests__/CommandPaletteEmptyAudit.a11y.chromium.spec.ts
index ee6dfe5d79..0d60b17425 100644
--- a/packages/core/src/CommandPalette/__tests__/CommandPaletteEmptyAudit.a11y.chromium.spec.ts
+++ b/packages/core/src/CommandPalette/__tests__/CommandPaletteEmptyAudit.a11y.chromium.spec.ts
@@ -15,7 +15,12 @@ import {execFileSync} from 'node:child_process';
import * as fs from 'node:fs';
import * as path from 'node:path';
import {inflateSync} from 'node:zlib';
-import {expect, test, type Locator, type Page} from '@playwright/test';
+import {
+ expect,
+ test,
+ type Locator,
+ type Page,
+} from '@astryxdesign/a11y-spec/playwright';
import {holdMotionStill} from '@astryxdesign/a11y-spec/chromium';
import {
DEFAULT_STORYBOOK_DIR,
diff --git a/packages/core/src/CommandPalette/__tests__/CommandPaletteFooter.a11y.chromium.spec.ts b/packages/core/src/CommandPalette/__tests__/CommandPaletteFooter.a11y.chromium.spec.ts
index 3f555db670..d459de00f5 100644
--- a/packages/core/src/CommandPalette/__tests__/CommandPaletteFooter.a11y.chromium.spec.ts
+++ b/packages/core/src/CommandPalette/__tests__/CommandPaletteFooter.a11y.chromium.spec.ts
@@ -12,7 +12,12 @@ import {createHash} from 'node:crypto';
import {execFileSync} from 'node:child_process';
import * as fs from 'node:fs';
import * as path from 'node:path';
-import {expect, test, type Browser, type Page} from '@playwright/test';
+import {
+ expect,
+ test,
+ type Browser,
+ type Page,
+} from '@astryxdesign/a11y-spec/playwright';
import {holdMotionStill} from '@astryxdesign/a11y-spec/chromium';
import {
DEFAULT_STORYBOOK_DIR,
diff --git a/packages/core/src/CommandPalette/__tests__/CommandPaletteInputAudit.a11y.chromium.spec.ts b/packages/core/src/CommandPalette/__tests__/CommandPaletteInputAudit.a11y.chromium.spec.ts
index 78a6cae00a..473d972706 100644
--- a/packages/core/src/CommandPalette/__tests__/CommandPaletteInputAudit.a11y.chromium.spec.ts
+++ b/packages/core/src/CommandPalette/__tests__/CommandPaletteInputAudit.a11y.chromium.spec.ts
@@ -12,7 +12,12 @@ import {createHash} from 'node:crypto';
import {execFileSync} from 'node:child_process';
import * as fs from 'node:fs';
import * as path from 'node:path';
-import {expect, test, type Locator, type Page} from '@playwright/test';
+import {
+ expect,
+ test,
+ type Locator,
+ type Page,
+} from '@astryxdesign/a11y-spec/playwright';
import {holdMotionStill} from '@astryxdesign/a11y-spec/chromium';
import {
DEFAULT_STORYBOOK_DIR,
diff --git a/packages/core/src/CommandPalette/__tests__/CommandPaletteItemAudit.a11y.chromium.spec.ts b/packages/core/src/CommandPalette/__tests__/CommandPaletteItemAudit.a11y.chromium.spec.ts
index 75c2e23557..076167b6b3 100644
--- a/packages/core/src/CommandPalette/__tests__/CommandPaletteItemAudit.a11y.chromium.spec.ts
+++ b/packages/core/src/CommandPalette/__tests__/CommandPaletteItemAudit.a11y.chromium.spec.ts
@@ -20,7 +20,7 @@ import {
type CDPSession,
type Locator,
type Page,
-} from '@playwright/test';
+} from '@astryxdesign/a11y-spec/playwright';
import {holdMotionStill} from '@astryxdesign/a11y-spec/chromium';
import {
DEFAULT_STORYBOOK_DIR,
diff --git a/packages/core/src/CommandPalette/__tests__/CommandPalettePending.a11y.chromium.spec.ts b/packages/core/src/CommandPalette/__tests__/CommandPalettePending.a11y.chromium.spec.ts
index abe25b09f0..a0dd2c5157 100644
--- a/packages/core/src/CommandPalette/__tests__/CommandPalettePending.a11y.chromium.spec.ts
+++ b/packages/core/src/CommandPalette/__tests__/CommandPalettePending.a11y.chromium.spec.ts
@@ -13,7 +13,7 @@
* changes.
*/
-import {expect, test} from '@playwright/test';
+import {expect, test} from '@astryxdesign/a11y-spec/playwright';
import {
DEFAULT_STORYBOOK_DIR,
serveStorybook,
diff --git a/packages/core/src/ComplexSelector/__tests__/ComplexSelector.a11y.chromium.spec.ts b/packages/core/src/ComplexSelector/__tests__/ComplexSelector.a11y.chromium.spec.ts
index ff7f857b54..b6c4389a77 100644
--- a/packages/core/src/ComplexSelector/__tests__/ComplexSelector.a11y.chromium.spec.ts
+++ b/packages/core/src/ComplexSelector/__tests__/ComplexSelector.a11y.chromium.spec.ts
@@ -15,7 +15,12 @@ import {execFileSync} from 'node:child_process';
import * as fs from 'node:fs';
import * as path from 'node:path';
import {inflateSync} from 'node:zlib';
-import {expect, test, type Locator, type Page} from '@playwright/test';
+import {
+ expect,
+ test,
+ type Locator,
+ type Page,
+} from '@astryxdesign/a11y-spec/playwright';
import {holdMotionStill} from '@astryxdesign/a11y-spec/chromium';
import {
DEFAULT_STORYBOOK_DIR,
diff --git a/packages/core/src/ContextMenu/__tests__/ContextMenuAudit.a11y.chromium.spec.ts b/packages/core/src/ContextMenu/__tests__/ContextMenuAudit.a11y.chromium.spec.ts
index 143275d84c..7d1c0a198a 100644
--- a/packages/core/src/ContextMenu/__tests__/ContextMenuAudit.a11y.chromium.spec.ts
+++ b/packages/core/src/ContextMenu/__tests__/ContextMenuAudit.a11y.chromium.spec.ts
@@ -12,7 +12,12 @@ import {createHash} from 'node:crypto';
import {execFileSync} from 'node:child_process';
import * as fs from 'node:fs';
import * as path from 'node:path';
-import {expect, test, type Locator, type Page} from '@playwright/test';
+import {
+ expect,
+ test,
+ type Locator,
+ type Page,
+} from '@astryxdesign/a11y-spec/playwright';
import {holdMotionStill} from '@astryxdesign/a11y-spec/chromium';
import {
DEFAULT_STORYBOOK_DIR,
diff --git a/packages/core/src/ContextMenu/__tests__/ContextMenuCursorAnchor.a11y.browser.spec.ts b/packages/core/src/ContextMenu/__tests__/ContextMenuCursorAnchor.a11y.browser.spec.ts
index ccbd24337d..4f80ee0513 100644
--- a/packages/core/src/ContextMenu/__tests__/ContextMenuCursorAnchor.a11y.browser.spec.ts
+++ b/packages/core/src/ContextMenu/__tests__/ContextMenuCursorAnchor.a11y.browser.spec.ts
@@ -18,7 +18,12 @@
* hit-tests, and reports as visible, a box that rule hides.
*/
-import {expect, test, type Locator, type Page} from '@playwright/test';
+import {
+ expect,
+ test,
+ type Locator,
+ type Page,
+} from '@astryxdesign/a11y-spec/playwright';
import {holdMotionStill} from '@astryxdesign/a11y-spec/chromium';
import {
DEFAULT_STORYBOOK_DIR,
diff --git a/packages/core/src/ContextMenu/__tests__/ContextMenuLongPress.a11y.chromium.spec.ts b/packages/core/src/ContextMenu/__tests__/ContextMenuLongPress.a11y.chromium.spec.ts
index 29102ddf41..d914ca0360 100644
--- a/packages/core/src/ContextMenu/__tests__/ContextMenuLongPress.a11y.chromium.spec.ts
+++ b/packages/core/src/ContextMenu/__tests__/ContextMenuLongPress.a11y.chromium.spec.ts
@@ -10,7 +10,12 @@
* compatibility mouse events a real browser sends after a touch.
*/
-import {expect, test, type CDPSession, type Page} from '@playwright/test';
+import {
+ expect,
+ test,
+ type CDPSession,
+ type Page,
+} from '@astryxdesign/a11y-spec/playwright';
import {
DEFAULT_STORYBOOK_DIR,
serveStorybook,
diff --git a/packages/core/src/DateInput/__tests__/DateInputAudit.a11y.chromium.spec.ts b/packages/core/src/DateInput/__tests__/DateInputAudit.a11y.chromium.spec.ts
index 0f5b0f15de..e20d842d00 100644
--- a/packages/core/src/DateInput/__tests__/DateInputAudit.a11y.chromium.spec.ts
+++ b/packages/core/src/DateInput/__tests__/DateInputAudit.a11y.chromium.spec.ts
@@ -15,7 +15,12 @@ import {createHash} from 'node:crypto';
import {execFileSync} from 'node:child_process';
import * as fs from 'node:fs';
import * as path from 'node:path';
-import {expect, test, type Locator, type Page} from '@playwright/test';
+import {
+ expect,
+ test,
+ type Locator,
+ type Page,
+} from '@astryxdesign/a11y-spec/playwright';
import {holdMotionStill} from '@astryxdesign/a11y-spec/chromium';
import {
DEFAULT_STORYBOOK_DIR,
diff --git a/packages/core/src/DateInput/__tests__/DateInputFocusLeave.interaction.browser.spec.ts b/packages/core/src/DateInput/__tests__/DateInputFocusLeave.interaction.browser.spec.ts
index aeae1949aa..6d6c52aff8 100644
--- a/packages/core/src/DateInput/__tests__/DateInputFocusLeave.interaction.browser.spec.ts
+++ b/packages/core/src/DateInput/__tests__/DateInputFocusLeave.interaction.browser.spec.ts
@@ -11,7 +11,7 @@
* interaction lane; jsdom has neither light dismiss nor real focus order.
*/
-import {expect, test, type Page} from '@playwright/test';
+import {expect, test, type Page} from '@astryxdesign/a11y-spec/playwright';
import {openStory, withStorybook} from '@astryxdesign/interaction-harness';
const storybook = withStorybook(test);
diff --git a/packages/core/src/DateInput/__tests__/MonthScroller.interaction.browser.spec.ts b/packages/core/src/DateInput/__tests__/MonthScroller.interaction.browser.spec.ts
index 1e4c39b4e7..45787966e3 100644
--- a/packages/core/src/DateInput/__tests__/MonthScroller.interaction.browser.spec.ts
+++ b/packages/core/src/DateInput/__tests__/MonthScroller.interaction.browser.spec.ts
@@ -12,7 +12,12 @@
* (`*.interaction.browser.spec.ts`, run by `pnpm test:interaction`)
*/
-import {expect, test, type Locator, type Page} from '@playwright/test';
+import {
+ expect,
+ test,
+ type Locator,
+ type Page,
+} from '@astryxdesign/a11y-spec/playwright';
import {
openStory,
touchDriver,
diff --git a/packages/core/src/DateInput/__tests__/MonthScrollerSteps.interaction.browser.spec.ts b/packages/core/src/DateInput/__tests__/MonthScrollerSteps.interaction.browser.spec.ts
index 0a9462560d..9424de1610 100644
--- a/packages/core/src/DateInput/__tests__/MonthScrollerSteps.interaction.browser.spec.ts
+++ b/packages/core/src/DateInput/__tests__/MonthScrollerSteps.interaction.browser.spec.ts
@@ -18,7 +18,12 @@
* (`*.interaction.browser.spec.ts`, run by `pnpm test:interaction`)
*/
-import {expect, test, type Locator, type Page} from '@playwright/test';
+import {
+ expect,
+ test,
+ type Locator,
+ type Page,
+} from '@astryxdesign/a11y-spec/playwright';
import {
blockMainThread,
drag,
diff --git a/packages/core/src/DateInput/__tests__/Wheel.interaction.browser.spec.ts b/packages/core/src/DateInput/__tests__/Wheel.interaction.browser.spec.ts
index a809fb972f..64c68862d1 100644
--- a/packages/core/src/DateInput/__tests__/Wheel.interaction.browser.spec.ts
+++ b/packages/core/src/DateInput/__tests__/Wheel.interaction.browser.spec.ts
@@ -12,7 +12,12 @@
* the UIKit recordings
*/
-import {expect, test, type Locator, type Page} from '@playwright/test';
+import {
+ expect,
+ test,
+ type Locator,
+ type Page,
+} from '@astryxdesign/a11y-spec/playwright';
import {
animationStoryboard,
blockMainThread,
diff --git a/packages/core/src/DateInput/__tests__/WheelActivation.interaction.browser.spec.ts b/packages/core/src/DateInput/__tests__/WheelActivation.interaction.browser.spec.ts
index 0d71f50f23..4a7b66656e 100644
--- a/packages/core/src/DateInput/__tests__/WheelActivation.interaction.browser.spec.ts
+++ b/packages/core/src/DateInput/__tests__/WheelActivation.interaction.browser.spec.ts
@@ -15,7 +15,7 @@
* a frame clock, never that count.
*/
-import {expect, test, type Page} from '@playwright/test';
+import {expect, test, type Page} from '@astryxdesign/a11y-spec/playwright';
import {
openStory,
touchDriver,
diff --git a/packages/core/src/DateInput/__tests__/WheelPinchZoom.a11y.chromium.spec.ts b/packages/core/src/DateInput/__tests__/WheelPinchZoom.a11y.chromium.spec.ts
index 1d6cb11eaa..5a0ba50e95 100644
--- a/packages/core/src/DateInput/__tests__/WheelPinchZoom.a11y.chromium.spec.ts
+++ b/packages/core/src/DateInput/__tests__/WheelPinchZoom.a11y.chromium.spec.ts
@@ -20,7 +20,7 @@ import {
type CDPSession,
type Locator,
type Page,
-} from '@playwright/test';
+} from '@astryxdesign/a11y-spec/playwright';
import {
DEFAULT_STORYBOOK_DIR,
serveStorybook,
diff --git a/packages/core/src/DateInput/__tests__/WheelRest.a11y.chromium.spec.ts b/packages/core/src/DateInput/__tests__/WheelRest.a11y.chromium.spec.ts
index 901d9e330d..5864007522 100644
--- a/packages/core/src/DateInput/__tests__/WheelRest.a11y.chromium.spec.ts
+++ b/packages/core/src/DateInput/__tests__/WheelRest.a11y.chromium.spec.ts
@@ -16,7 +16,12 @@
* of it is in jsdom. Wheel.test.tsx and PickerWheel.test.tsx hold the rule.
*/
-import {expect, test, type Locator, type Page} from '@playwright/test';
+import {
+ expect,
+ test,
+ type Locator,
+ type Page,
+} from '@astryxdesign/a11y-spec/playwright';
import {
DEFAULT_STORYBOOK_DIR,
serveStorybook,
diff --git a/packages/core/src/DateRangeInput/__tests__/DateRangeInputReflow.interaction.browser.spec.ts b/packages/core/src/DateRangeInput/__tests__/DateRangeInputReflow.interaction.browser.spec.ts
index acc47b0548..544094e88d 100644
--- a/packages/core/src/DateRangeInput/__tests__/DateRangeInputReflow.interaction.browser.spec.ts
+++ b/packages/core/src/DateRangeInput/__tests__/DateRangeInputReflow.interaction.browser.spec.ts
@@ -13,7 +13,12 @@
* interaction lane; jsdom has no layout.
*/
-import {expect, test, type Locator, type Page} from '@playwright/test';
+import {
+ expect,
+ test,
+ type Locator,
+ type Page,
+} from '@astryxdesign/a11y-spec/playwright';
import {openStory, withStorybook} from '@astryxdesign/interaction-harness';
const storybook = withStorybook(test);
diff --git a/packages/core/src/Dialog/__tests__/Dialog.a11y.browser.spec.ts b/packages/core/src/Dialog/__tests__/Dialog.a11y.browser.spec.ts
index f8c4c2cac9..c48f483358 100644
--- a/packages/core/src/Dialog/__tests__/Dialog.a11y.browser.spec.ts
+++ b/packages/core/src/Dialog/__tests__/Dialog.a11y.browser.spec.ts
@@ -14,7 +14,12 @@
* focus its native close restores to the invoker.
*/
-import {expect, test, type Locator, type Page} from '@playwright/test';
+import {
+ expect,
+ test,
+ type Locator,
+ type Page,
+} from '@astryxdesign/a11y-spec/playwright';
import {
DEFAULT_STORYBOOK_DIR,
serveStorybook,
diff --git a/packages/core/src/Dialog/__tests__/Dialog.a11y.chromium.spec.ts b/packages/core/src/Dialog/__tests__/Dialog.a11y.chromium.spec.ts
index 3d6a758211..ee6d4deee8 100644
--- a/packages/core/src/Dialog/__tests__/Dialog.a11y.chromium.spec.ts
+++ b/packages/core/src/Dialog/__tests__/Dialog.a11y.chromium.spec.ts
@@ -16,7 +16,7 @@ import {
type CDPSession,
type Locator,
type Page,
-} from '@playwright/test';
+} from '@astryxdesign/a11y-spec/playwright';
import {
MissingBindingCapability,
MODAL_DIALOG_PATTERN,
diff --git a/packages/core/src/Dialog/__tests__/Dialog.reduced-motion.a11y.browser.spec.ts b/packages/core/src/Dialog/__tests__/Dialog.reduced-motion.a11y.browser.spec.ts
index 2e21871ca6..807c5c55eb 100644
--- a/packages/core/src/Dialog/__tests__/Dialog.reduced-motion.a11y.browser.spec.ts
+++ b/packages/core/src/Dialog/__tests__/Dialog.reduced-motion.a11y.browser.spec.ts
@@ -18,7 +18,7 @@
* longhands instead of the live Animation.
*/
-import {expect, test, type Page} from '@playwright/test';
+import {expect, test, type Page} from '@astryxdesign/a11y-spec/playwright';
import {
DEFAULT_STORYBOOK_DIR,
serveStorybook,
diff --git a/packages/core/src/Dialog/__tests__/DialogSecondDocument.a11y.browser.spec.ts b/packages/core/src/Dialog/__tests__/DialogSecondDocument.a11y.browser.spec.ts
index 216f7effe9..8b404dc1f8 100644
--- a/packages/core/src/Dialog/__tests__/DialogSecondDocument.a11y.browser.spec.ts
+++ b/packages/core/src/Dialog/__tests__/DialogSecondDocument.a11y.browser.spec.ts
@@ -30,7 +30,7 @@ import {
type Keyboard,
type Locator,
type Page,
-} from '@playwright/test';
+} from '@astryxdesign/a11y-spec/playwright';
import {holdMotionStill} from '@astryxdesign/a11y-spec/chromium';
import {
DEFAULT_STORYBOOK_DIR,
diff --git a/packages/core/src/Drawer/__tests__/DrawerAudit.a11y.chromium.spec.ts b/packages/core/src/Drawer/__tests__/DrawerAudit.a11y.chromium.spec.ts
index f87f20d5cd..577d36071f 100644
--- a/packages/core/src/Drawer/__tests__/DrawerAudit.a11y.chromium.spec.ts
+++ b/packages/core/src/Drawer/__tests__/DrawerAudit.a11y.chromium.spec.ts
@@ -12,7 +12,7 @@ import {createHash} from 'node:crypto';
import {execFileSync} from 'node:child_process';
import * as fs from 'node:fs';
import * as path from 'node:path';
-import {expect, test, type Page} from '@playwright/test';
+import {expect, test, type Page} from '@astryxdesign/a11y-spec/playwright';
import {holdMotionStill} from '@astryxdesign/a11y-spec/chromium';
import {
DEFAULT_STORYBOOK_DIR,
diff --git a/packages/core/src/Drawer/__tests__/DrawerHeaderAudit.a11y.chromium.spec.ts b/packages/core/src/Drawer/__tests__/DrawerHeaderAudit.a11y.chromium.spec.ts
index c1679c6a59..3809a5e120 100644
--- a/packages/core/src/Drawer/__tests__/DrawerHeaderAudit.a11y.chromium.spec.ts
+++ b/packages/core/src/Drawer/__tests__/DrawerHeaderAudit.a11y.chromium.spec.ts
@@ -12,7 +12,7 @@ import {createHash} from 'node:crypto';
import {execFileSync} from 'node:child_process';
import * as fs from 'node:fs';
import * as path from 'node:path';
-import {expect, test, type Page} from '@playwright/test';
+import {expect, test, type Page} from '@astryxdesign/a11y-spec/playwright';
import {holdMotionStill} from '@astryxdesign/a11y-spec/chromium';
import {
DEFAULT_STORYBOOK_DIR,
diff --git a/packages/core/src/Drawer/__tests__/DrawerKeyboardOpen.a11y.chromium.spec.ts b/packages/core/src/Drawer/__tests__/DrawerKeyboardOpen.a11y.chromium.spec.ts
index 8ad0337cab..24ad732456 100644
--- a/packages/core/src/Drawer/__tests__/DrawerKeyboardOpen.a11y.chromium.spec.ts
+++ b/packages/core/src/Drawer/__tests__/DrawerKeyboardOpen.a11y.chromium.spec.ts
@@ -11,7 +11,7 @@
* nested popover show, so Drawer.test.tsx uses stand-ins for both.
*/
-import {expect, test} from '@playwright/test';
+import {expect, test} from '@astryxdesign/a11y-spec/playwright';
import {holdMotionStill} from '@astryxdesign/a11y-spec/chromium';
import {
DEFAULT_STORYBOOK_DIR,
diff --git a/packages/core/src/Drawer/__tests__/DrawerNonModalPageScroll.a11y.chromium.spec.ts b/packages/core/src/Drawer/__tests__/DrawerNonModalPageScroll.a11y.chromium.spec.ts
index 9e9e3b4458..c595877aca 100644
--- a/packages/core/src/Drawer/__tests__/DrawerNonModalPageScroll.a11y.chromium.spec.ts
+++ b/packages/core/src/Drawer/__tests__/DrawerNonModalPageScroll.a11y.chromium.spec.ts
@@ -20,7 +20,7 @@
* document, so a pan that moves only the visual viewport counts too.
*/
-import {expect, test, type Page} from '@playwright/test';
+import {expect, test, type Page} from '@astryxdesign/a11y-spec/playwright';
import {
DEFAULT_STORYBOOK_DIR,
serveStorybook,
diff --git a/packages/core/src/Drawer/__tests__/DrawerToastOutlet.a11y.chromium.spec.ts b/packages/core/src/Drawer/__tests__/DrawerToastOutlet.a11y.chromium.spec.ts
index 2e09799ee0..06610155a0 100644
--- a/packages/core/src/Drawer/__tests__/DrawerToastOutlet.a11y.chromium.spec.ts
+++ b/packages/core/src/Drawer/__tests__/DrawerToastOutlet.a11y.chromium.spec.ts
@@ -14,7 +14,7 @@
* lives.
*/
-import {expect, test, type Page} from '@playwright/test';
+import {expect, test, type Page} from '@astryxdesign/a11y-spec/playwright';
import {holdMotionStill} from '@astryxdesign/a11y-spec/chromium';
import {
DEFAULT_STORYBOOK_DIR,
diff --git a/packages/core/src/DropdownMenu/__tests__/DropdownMenuAudit.a11y.chromium.spec.ts b/packages/core/src/DropdownMenu/__tests__/DropdownMenuAudit.a11y.chromium.spec.ts
index 62f8a1c27d..5693312501 100644
--- a/packages/core/src/DropdownMenu/__tests__/DropdownMenuAudit.a11y.chromium.spec.ts
+++ b/packages/core/src/DropdownMenu/__tests__/DropdownMenuAudit.a11y.chromium.spec.ts
@@ -23,7 +23,12 @@ import {createHash} from 'node:crypto';
import {execFileSync} from 'node:child_process';
import * as fs from 'node:fs';
import * as path from 'node:path';
-import {expect, test, type Browser, type Page} from '@playwright/test';
+import {
+ expect,
+ test,
+ type Browser,
+ type Page,
+} from '@astryxdesign/a11y-spec/playwright';
import {holdMotionStill} from '@astryxdesign/a11y-spec/chromium';
import {
DEFAULT_STORYBOOK_DIR,
diff --git a/packages/core/src/DropdownMenu/__tests__/DropdownMenuDividerAudit.a11y.chromium.spec.ts b/packages/core/src/DropdownMenu/__tests__/DropdownMenuDividerAudit.a11y.chromium.spec.ts
index cbacd54ed9..09ddb7e6c7 100644
--- a/packages/core/src/DropdownMenu/__tests__/DropdownMenuDividerAudit.a11y.chromium.spec.ts
+++ b/packages/core/src/DropdownMenu/__tests__/DropdownMenuDividerAudit.a11y.chromium.spec.ts
@@ -12,7 +12,7 @@ import {createHash} from 'node:crypto';
import {execFileSync} from 'node:child_process';
import * as fs from 'node:fs';
import * as path from 'node:path';
-import {expect, test, type Page} from '@playwright/test';
+import {expect, test, type Page} from '@astryxdesign/a11y-spec/playwright';
import {holdMotionStill} from '@astryxdesign/a11y-spec/chromium';
import {
DEFAULT_STORYBOOK_DIR,
diff --git a/packages/core/src/DropdownMenu/__tests__/DropdownMenuDrillIn.a11y.chromium.spec.ts b/packages/core/src/DropdownMenu/__tests__/DropdownMenuDrillIn.a11y.chromium.spec.ts
index a2694f1531..1f7075b674 100644
--- a/packages/core/src/DropdownMenu/__tests__/DropdownMenuDrillIn.a11y.chromium.spec.ts
+++ b/packages/core/src/DropdownMenu/__tests__/DropdownMenuDrillIn.a11y.chromium.spec.ts
@@ -13,7 +13,12 @@
* (`(pointer: coarse)` at open time) is what jsdom cannot exercise.
*/
-import {devices, expect, test, type Page} from '@playwright/test';
+import {
+ devices,
+ expect,
+ test,
+ type Page,
+} from '@astryxdesign/a11y-spec/playwright';
import {
DEFAULT_STORYBOOK_DIR,
serveStorybook,
diff --git a/packages/core/src/DropdownMenu/__tests__/DropdownMenuFocusReturn.a11y.browser.spec.ts b/packages/core/src/DropdownMenu/__tests__/DropdownMenuFocusReturn.a11y.browser.spec.ts
index f9dc9f05c3..2eaa0cf1f2 100644
--- a/packages/core/src/DropdownMenu/__tests__/DropdownMenuFocusReturn.a11y.browser.spec.ts
+++ b/packages/core/src/DropdownMenu/__tests__/DropdownMenuFocusReturn.a11y.browser.spec.ts
@@ -16,7 +16,12 @@
* returns after a pointer pick.
*/
-import {expect, test, type Locator, type Page} from '@playwright/test';
+import {
+ expect,
+ test,
+ type Locator,
+ type Page,
+} from '@astryxdesign/a11y-spec/playwright';
import {
DEFAULT_STORYBOOK_DIR,
serveStorybook,
diff --git a/packages/core/src/DropdownMenu/__tests__/DropdownMenuGroupAudit.a11y.chromium.spec.ts b/packages/core/src/DropdownMenu/__tests__/DropdownMenuGroupAudit.a11y.chromium.spec.ts
index 8e384842df..c98221b57e 100644
--- a/packages/core/src/DropdownMenu/__tests__/DropdownMenuGroupAudit.a11y.chromium.spec.ts
+++ b/packages/core/src/DropdownMenu/__tests__/DropdownMenuGroupAudit.a11y.chromium.spec.ts
@@ -12,7 +12,7 @@ import {createHash} from 'node:crypto';
import {execFileSync} from 'node:child_process';
import * as fs from 'node:fs';
import * as path from 'node:path';
-import {expect, test, type Page} from '@playwright/test';
+import {expect, test, type Page} from '@astryxdesign/a11y-spec/playwright';
import {holdMotionStill} from '@astryxdesign/a11y-spec/chromium';
import {
DEFAULT_STORYBOOK_DIR,
diff --git a/packages/core/src/DropdownMenu/__tests__/DropdownMenuItemAudit.a11y.chromium.spec.ts b/packages/core/src/DropdownMenu/__tests__/DropdownMenuItemAudit.a11y.chromium.spec.ts
index f414d6a5ed..c698d6b37e 100644
--- a/packages/core/src/DropdownMenu/__tests__/DropdownMenuItemAudit.a11y.chromium.spec.ts
+++ b/packages/core/src/DropdownMenu/__tests__/DropdownMenuItemAudit.a11y.chromium.spec.ts
@@ -12,7 +12,12 @@ import {createHash} from 'node:crypto';
import {execFileSync} from 'node:child_process';
import * as fs from 'node:fs';
import * as path from 'node:path';
-import {expect, test, type Locator, type Page} from '@playwright/test';
+import {
+ expect,
+ test,
+ type Locator,
+ type Page,
+} from '@astryxdesign/a11y-spec/playwright';
import {holdMotionStill} from '@astryxdesign/a11y-spec/chromium';
import {
DEFAULT_STORYBOOK_DIR,
diff --git a/packages/core/src/DropdownMenu/__tests__/DropdownMenuRadioGroupAudit.a11y.chromium.spec.ts b/packages/core/src/DropdownMenu/__tests__/DropdownMenuRadioGroupAudit.a11y.chromium.spec.ts
index 68f2180d3d..be577bf48b 100644
--- a/packages/core/src/DropdownMenu/__tests__/DropdownMenuRadioGroupAudit.a11y.chromium.spec.ts
+++ b/packages/core/src/DropdownMenu/__tests__/DropdownMenuRadioGroupAudit.a11y.chromium.spec.ts
@@ -12,7 +12,7 @@ import {createHash} from 'node:crypto';
import {execFileSync} from 'node:child_process';
import * as fs from 'node:fs';
import * as path from 'node:path';
-import {expect, test, type Page} from '@playwright/test';
+import {expect, test, type Page} from '@astryxdesign/a11y-spec/playwright';
import {holdMotionStill} from '@astryxdesign/a11y-spec/chromium';
import {
DEFAULT_STORYBOOK_DIR,
diff --git a/packages/core/src/DropdownMenu/__tests__/DropdownMenuRadioItemAudit.a11y.chromium.spec.ts b/packages/core/src/DropdownMenu/__tests__/DropdownMenuRadioItemAudit.a11y.chromium.spec.ts
index 6253db61fc..d6c194546f 100644
--- a/packages/core/src/DropdownMenu/__tests__/DropdownMenuRadioItemAudit.a11y.chromium.spec.ts
+++ b/packages/core/src/DropdownMenu/__tests__/DropdownMenuRadioItemAudit.a11y.chromium.spec.ts
@@ -12,7 +12,7 @@ import {createHash} from 'node:crypto';
import {execFileSync} from 'node:child_process';
import * as fs from 'node:fs';
import * as path from 'node:path';
-import {expect, test, type Page} from '@playwright/test';
+import {expect, test, type Page} from '@astryxdesign/a11y-spec/playwright';
import {holdMotionStill} from '@astryxdesign/a11y-spec/chromium';
import {
DEFAULT_STORYBOOK_DIR,
diff --git a/packages/core/src/DropdownMenu/__tests__/DropdownMenuSubMenuAudit.a11y.chromium.spec.ts b/packages/core/src/DropdownMenu/__tests__/DropdownMenuSubMenuAudit.a11y.chromium.spec.ts
index 37808e4bcb..8dc528a753 100644
--- a/packages/core/src/DropdownMenu/__tests__/DropdownMenuSubMenuAudit.a11y.chromium.spec.ts
+++ b/packages/core/src/DropdownMenu/__tests__/DropdownMenuSubMenuAudit.a11y.chromium.spec.ts
@@ -12,7 +12,12 @@ import {createHash} from 'node:crypto';
import {execFileSync} from 'node:child_process';
import * as fs from 'node:fs';
import * as path from 'node:path';
-import {expect, test, type Locator, type Page} from '@playwright/test';
+import {
+ expect,
+ test,
+ type Locator,
+ type Page,
+} from '@astryxdesign/a11y-spec/playwright';
import {holdMotionStill} from '@astryxdesign/a11y-spec/chromium';
import {
DEFAULT_STORYBOOK_DIR,
diff --git a/packages/core/src/DropdownMenu/__tests__/Menu.a11y.chromium.spec.ts b/packages/core/src/DropdownMenu/__tests__/Menu.a11y.chromium.spec.ts
index 1a3514b2ac..ca71a7147f 100644
--- a/packages/core/src/DropdownMenu/__tests__/Menu.a11y.chromium.spec.ts
+++ b/packages/core/src/DropdownMenu/__tests__/Menu.a11y.chromium.spec.ts
@@ -14,7 +14,7 @@ import {
type CDPSession,
type Locator,
type Page,
-} from '@playwright/test';
+} from '@astryxdesign/a11y-spec/playwright';
import {
MENU_PATTERN,
blockingResults,
diff --git a/packages/core/src/DropdownMenu/__tests__/MenuButton.a11y.chromium.spec.ts b/packages/core/src/DropdownMenu/__tests__/MenuButton.a11y.chromium.spec.ts
index 6bfefceb95..2ad2d99711 100644
--- a/packages/core/src/DropdownMenu/__tests__/MenuButton.a11y.chromium.spec.ts
+++ b/packages/core/src/DropdownMenu/__tests__/MenuButton.a11y.chromium.spec.ts
@@ -14,7 +14,7 @@ import {
type CDPSession,
type Locator,
type Page,
-} from '@playwright/test';
+} from '@astryxdesign/a11y-spec/playwright';
import {
MENU_BUTTON_PATTERN,
blockingResults,
diff --git a/packages/core/src/DropdownMenu/__tests__/MenuHeaderFooter.a11y.chromium.spec.ts b/packages/core/src/DropdownMenu/__tests__/MenuHeaderFooter.a11y.chromium.spec.ts
index d37f4a46aa..77d809bb68 100644
--- a/packages/core/src/DropdownMenu/__tests__/MenuHeaderFooter.a11y.chromium.spec.ts
+++ b/packages/core/src/DropdownMenu/__tests__/MenuHeaderFooter.a11y.chromium.spec.ts
@@ -11,7 +11,7 @@
* @position Run with `pnpm test:a11y-contract`.
*/
-import {expect, test, type Page} from '@playwright/test';
+import {expect, test, type Page} from '@astryxdesign/a11y-spec/playwright';
import {
DEFAULT_STORYBOOK_DIR,
serveStorybook,
diff --git a/packages/core/src/DropdownMenu/__tests__/MenuHoverFocus.a11y.chromium.spec.ts b/packages/core/src/DropdownMenu/__tests__/MenuHoverFocus.a11y.chromium.spec.ts
index 9ed90148b2..f8ad6b4132 100644
--- a/packages/core/src/DropdownMenu/__tests__/MenuHoverFocus.a11y.chromium.spec.ts
+++ b/packages/core/src/DropdownMenu/__tests__/MenuHoverFocus.a11y.chromium.spec.ts
@@ -19,7 +19,12 @@
* keyboard-only focus style.
*/
-import {expect, test, type Locator, type Page} from '@playwright/test';
+import {
+ expect,
+ test,
+ type Locator,
+ type Page,
+} from '@astryxdesign/a11y-spec/playwright';
import {
DEFAULT_STORYBOOK_DIR,
serveStorybook,
diff --git a/packages/core/src/DropdownMenu/__tests__/MenuPinchZoom.a11y.chromium.spec.ts b/packages/core/src/DropdownMenu/__tests__/MenuPinchZoom.a11y.chromium.spec.ts
index f9158bed39..1ced37cadc 100644
--- a/packages/core/src/DropdownMenu/__tests__/MenuPinchZoom.a11y.chromium.spec.ts
+++ b/packages/core/src/DropdownMenu/__tests__/MenuPinchZoom.a11y.chromium.spec.ts
@@ -18,7 +18,7 @@ import {
type CDPSession,
type Locator,
type Page,
-} from '@playwright/test';
+} from '@astryxdesign/a11y-spec/playwright';
import {
DEFAULT_STORYBOOK_DIR,
serveStorybook,
diff --git a/packages/core/src/DropdownMenu/__tests__/MenuPress.a11y.chromium.spec.ts b/packages/core/src/DropdownMenu/__tests__/MenuPress.a11y.chromium.spec.ts
index ead2337837..299224b3d1 100644
--- a/packages/core/src/DropdownMenu/__tests__/MenuPress.a11y.chromium.spec.ts
+++ b/packages/core/src/DropdownMenu/__tests__/MenuPress.a11y.chromium.spec.ts
@@ -15,7 +15,12 @@
* paths jsdom cannot exercise (hit testing, touch synthesis, scrolling)
*/
-import {expect, test, type Page, type CDPSession} from '@playwright/test';
+import {
+ expect,
+ test,
+ type Page,
+ type CDPSession,
+} from '@astryxdesign/a11y-spec/playwright';
import {
DEFAULT_STORYBOOK_DIR,
serveStorybook,
diff --git a/packages/core/src/DropdownMenu/__tests__/SubMenuHeaderFooter.a11y.chromium.spec.ts b/packages/core/src/DropdownMenu/__tests__/SubMenuHeaderFooter.a11y.chromium.spec.ts
index 0e54caf2bb..52d5118581 100644
--- a/packages/core/src/DropdownMenu/__tests__/SubMenuHeaderFooter.a11y.chromium.spec.ts
+++ b/packages/core/src/DropdownMenu/__tests__/SubMenuHeaderFooter.a11y.chromium.spec.ts
@@ -19,7 +19,13 @@
* Tab order and the pointer decision are what jsdom cannot exercise.
*/
-import {devices, expect, test, type Locator, type Page} from '@playwright/test';
+import {
+ devices,
+ expect,
+ test,
+ type Locator,
+ type Page,
+} from '@astryxdesign/a11y-spec/playwright';
import {
DEFAULT_STORYBOOK_DIR,
serveStorybook,
diff --git a/packages/core/src/Field/__tests__/FieldDisabledForcedColorsFocus.a11y.chromium.spec.ts b/packages/core/src/Field/__tests__/FieldDisabledForcedColorsFocus.a11y.chromium.spec.ts
index 320b54fa0b..b518e677f9 100644
--- a/packages/core/src/Field/__tests__/FieldDisabledForcedColorsFocus.a11y.chromium.spec.ts
+++ b/packages/core/src/Field/__tests__/FieldDisabledForcedColorsFocus.a11y.chromium.spec.ts
@@ -10,7 +10,7 @@
* (WCAG 2.4.7) on the disabled field focus styles
*/
-import {expect, test, type Locator} from '@playwright/test';
+import {expect, test, type Locator} from '@astryxdesign/a11y-spec/playwright';
import {
DEFAULT_STORYBOOK_DIR,
serveStorybook,
diff --git a/packages/core/src/Field/__tests__/FieldForcedColorsFocus.a11y.chromium.spec.ts b/packages/core/src/Field/__tests__/FieldForcedColorsFocus.a11y.chromium.spec.ts
index 9484b60884..597a66ac0a 100644
--- a/packages/core/src/Field/__tests__/FieldForcedColorsFocus.a11y.chromium.spec.ts
+++ b/packages/core/src/Field/__tests__/FieldForcedColorsFocus.a11y.chromium.spec.ts
@@ -10,7 +10,7 @@
* input wrapper styles
*/
-import {expect, test, type Locator} from '@playwright/test';
+import {expect, test, type Locator} from '@astryxdesign/a11y-spec/playwright';
import {
DEFAULT_STORYBOOK_DIR,
serveStorybook,
diff --git a/packages/core/src/Field/__tests__/FieldLabelAudit.a11y.chromium.spec.ts b/packages/core/src/Field/__tests__/FieldLabelAudit.a11y.chromium.spec.ts
index 160ab51383..b572b4487e 100644
--- a/packages/core/src/Field/__tests__/FieldLabelAudit.a11y.chromium.spec.ts
+++ b/packages/core/src/Field/__tests__/FieldLabelAudit.a11y.chromium.spec.ts
@@ -12,7 +12,7 @@ import {createHash} from 'node:crypto';
import {execFileSync} from 'node:child_process';
import * as fs from 'node:fs';
import * as path from 'node:path';
-import {expect, test, type Page} from '@playwright/test';
+import {expect, test, type Page} from '@astryxdesign/a11y-spec/playwright';
import {holdMotionStill} from '@astryxdesign/a11y-spec/chromium';
import {
DEFAULT_STORYBOOK_DIR,
diff --git a/packages/core/src/Field/__tests__/FieldLabelTap.a11y.chromium.spec.ts b/packages/core/src/Field/__tests__/FieldLabelTap.a11y.chromium.spec.ts
index e87985bea7..25744a69da 100644
--- a/packages/core/src/Field/__tests__/FieldLabelTap.a11y.chromium.spec.ts
+++ b/packages/core/src/Field/__tests__/FieldLabelTap.a11y.chromium.spec.ts
@@ -11,7 +11,12 @@
* needs a real browser: jsdom's label activation never focuses a text input.
*/
-import {expect, test, type Locator, type Page} from '@playwright/test';
+import {
+ expect,
+ test,
+ type Locator,
+ type Page,
+} from '@astryxdesign/a11y-spec/playwright';
import {
DEFAULT_STORYBOOK_DIR,
serveStorybook,
diff --git a/packages/core/src/Field/__tests__/SearchKeyboard.interaction.browser.spec.ts b/packages/core/src/Field/__tests__/SearchKeyboard.interaction.browser.spec.ts
index f41e73b25f..042b8d91b0 100644
--- a/packages/core/src/Field/__tests__/SearchKeyboard.interaction.browser.spec.ts
+++ b/packages/core/src/Field/__tests__/SearchKeyboard.interaction.browser.spec.ts
@@ -10,7 +10,12 @@
* touch input and no real focus.
*/
-import {expect, test, type Locator, type Page} from '@playwright/test';
+import {
+ expect,
+ test,
+ type Locator,
+ type Page,
+} from '@astryxdesign/a11y-spec/playwright';
import {openStory, withStorybook} from '@astryxdesign/interaction-harness';
const storybook = withStorybook(test);
diff --git a/packages/core/src/FieldStatus/__tests__/FieldStatusAudit.a11y.chromium.spec.ts b/packages/core/src/FieldStatus/__tests__/FieldStatusAudit.a11y.chromium.spec.ts
index ccf8ffb9c1..7d6c9f0044 100644
--- a/packages/core/src/FieldStatus/__tests__/FieldStatusAudit.a11y.chromium.spec.ts
+++ b/packages/core/src/FieldStatus/__tests__/FieldStatusAudit.a11y.chromium.spec.ts
@@ -12,7 +12,7 @@ import {createHash} from 'node:crypto';
import {execFileSync} from 'node:child_process';
import * as fs from 'node:fs';
import * as path from 'node:path';
-import {expect, test, type Page} from '@playwright/test';
+import {expect, test, type Page} from '@astryxdesign/a11y-spec/playwright';
import {holdMotionStill} from '@astryxdesign/a11y-spec/chromium';
import {
DEFAULT_STORYBOOK_DIR,
diff --git a/packages/core/src/FieldStatus/__tests__/StatusMessage.a11y.chromium.spec.ts b/packages/core/src/FieldStatus/__tests__/StatusMessage.a11y.chromium.spec.ts
index 448dc796fd..a47f0bd881 100644
--- a/packages/core/src/FieldStatus/__tests__/StatusMessage.a11y.chromium.spec.ts
+++ b/packages/core/src/FieldStatus/__tests__/StatusMessage.a11y.chromium.spec.ts
@@ -14,7 +14,7 @@ import {
type CDPSession,
type Locator,
type Page,
-} from '@playwright/test';
+} from '@astryxdesign/a11y-spec/playwright';
import {
STATUS_MESSAGE_PATTERN,
blockingResults,
diff --git a/packages/core/src/FileInput/__tests__/FileInputAudit.a11y.chromium.spec.ts b/packages/core/src/FileInput/__tests__/FileInputAudit.a11y.chromium.spec.ts
index ccdd9ab44b..abf1c1c1cb 100644
--- a/packages/core/src/FileInput/__tests__/FileInputAudit.a11y.chromium.spec.ts
+++ b/packages/core/src/FileInput/__tests__/FileInputAudit.a11y.chromium.spec.ts
@@ -12,7 +12,7 @@ import {createHash} from 'node:crypto';
import {execFileSync} from 'node:child_process';
import * as fs from 'node:fs';
import * as path from 'node:path';
-import {expect, test, type Page} from '@playwright/test';
+import {expect, test, type Page} from '@astryxdesign/a11y-spec/playwright';
import {holdMotionStill} from '@astryxdesign/a11y-spec/chromium';
import {
DEFAULT_STORYBOOK_DIR,
diff --git a/packages/core/src/FileInput/__tests__/FileInputTooltipPress.a11y.chromium.spec.ts b/packages/core/src/FileInput/__tests__/FileInputTooltipPress.a11y.chromium.spec.ts
index c6455b7f15..eb0b60029b 100644
--- a/packages/core/src/FileInput/__tests__/FileInputTooltipPress.a11y.chromium.spec.ts
+++ b/packages/core/src/FileInput/__tests__/FileInputTooltipPress.a11y.chromium.spec.ts
@@ -11,7 +11,7 @@
* @position Runs in pr-a11y when FileInput, Tooltip or this spec changes.
*/
-import {expect, test, type Page} from '@playwright/test';
+import {expect, test, type Page} from '@astryxdesign/a11y-spec/playwright';
import {
DEFAULT_STORYBOOK_DIR,
serveStorybook,
diff --git a/packages/core/src/Grid/__tests__/GridSpanAudit.a11y.chromium.spec.ts b/packages/core/src/Grid/__tests__/GridSpanAudit.a11y.chromium.spec.ts
index 663f5eff0b..60b19c5e83 100644
--- a/packages/core/src/Grid/__tests__/GridSpanAudit.a11y.chromium.spec.ts
+++ b/packages/core/src/Grid/__tests__/GridSpanAudit.a11y.chromium.spec.ts
@@ -12,7 +12,7 @@ import {createHash} from 'node:crypto';
import {execFileSync} from 'node:child_process';
import * as fs from 'node:fs';
import * as path from 'node:path';
-import {expect, test, type Page} from '@playwright/test';
+import {expect, test, type Page} from '@astryxdesign/a11y-spec/playwright';
import {holdMotionStill} from '@astryxdesign/a11y-spec/chromium';
import {
DEFAULT_STORYBOOK_DIR,
diff --git a/packages/core/src/HStack/__tests__/HStackAudit.a11y.chromium.spec.ts b/packages/core/src/HStack/__tests__/HStackAudit.a11y.chromium.spec.ts
index 83f454a617..58176c751c 100644
--- a/packages/core/src/HStack/__tests__/HStackAudit.a11y.chromium.spec.ts
+++ b/packages/core/src/HStack/__tests__/HStackAudit.a11y.chromium.spec.ts
@@ -12,7 +12,7 @@ import {createHash} from 'node:crypto';
import {execFileSync} from 'node:child_process';
import * as fs from 'node:fs';
import * as path from 'node:path';
-import {expect, test, type Page} from '@playwright/test';
+import {expect, test, type Page} from '@astryxdesign/a11y-spec/playwright';
import {holdMotionStill} from '@astryxdesign/a11y-spec/chromium';
import {
DEFAULT_STORYBOOK_DIR,
diff --git a/packages/core/src/Heading/__tests__/HeadingAudit.a11y.chromium.spec.ts b/packages/core/src/Heading/__tests__/HeadingAudit.a11y.chromium.spec.ts
index cc57cb320d..6c56e97d75 100644
--- a/packages/core/src/Heading/__tests__/HeadingAudit.a11y.chromium.spec.ts
+++ b/packages/core/src/Heading/__tests__/HeadingAudit.a11y.chromium.spec.ts
@@ -12,7 +12,7 @@ import {createHash} from 'node:crypto';
import {execFileSync} from 'node:child_process';
import * as fs from 'node:fs';
import * as path from 'node:path';
-import {expect, test, type Page} from '@playwright/test';
+import {expect, test, type Page} from '@astryxdesign/a11y-spec/playwright';
import {holdMotionStill} from '@astryxdesign/a11y-spec/chromium';
import {
DEFAULT_STORYBOOK_DIR,
diff --git a/packages/core/src/HoverCard/__tests__/HoverCardAudit.a11y.chromium.spec.ts b/packages/core/src/HoverCard/__tests__/HoverCardAudit.a11y.chromium.spec.ts
index c5a00ecfd5..d5b3e17f81 100644
--- a/packages/core/src/HoverCard/__tests__/HoverCardAudit.a11y.chromium.spec.ts
+++ b/packages/core/src/HoverCard/__tests__/HoverCardAudit.a11y.chromium.spec.ts
@@ -12,7 +12,7 @@ import {createHash} from 'node:crypto';
import {execFileSync} from 'node:child_process';
import * as fs from 'node:fs';
import * as path from 'node:path';
-import {expect, test, type Page} from '@playwright/test';
+import {expect, test, type Page} from '@astryxdesign/a11y-spec/playwright';
import {holdMotionStill} from '@astryxdesign/a11y-spec/chromium';
import {
DEFAULT_STORYBOOK_DIR,
diff --git a/packages/core/src/Icon/__tests__/IconAudit.a11y.chromium.spec.ts b/packages/core/src/Icon/__tests__/IconAudit.a11y.chromium.spec.ts
index 0780d5da17..87613cad1f 100644
--- a/packages/core/src/Icon/__tests__/IconAudit.a11y.chromium.spec.ts
+++ b/packages/core/src/Icon/__tests__/IconAudit.a11y.chromium.spec.ts
@@ -12,7 +12,7 @@ import {createHash} from 'node:crypto';
import {execFileSync} from 'node:child_process';
import * as fs from 'node:fs';
import * as path from 'node:path';
-import {expect, test, type Page} from '@playwright/test';
+import {expect, test, type Page} from '@astryxdesign/a11y-spec/playwright';
import {holdMotionStill} from '@astryxdesign/a11y-spec/chromium';
import {
DEFAULT_STORYBOOK_DIR,
diff --git a/packages/core/src/IconButton/__tests__/IconButtonAudit.a11y.chromium.spec.ts b/packages/core/src/IconButton/__tests__/IconButtonAudit.a11y.chromium.spec.ts
index 540899809a..93064fd415 100644
--- a/packages/core/src/IconButton/__tests__/IconButtonAudit.a11y.chromium.spec.ts
+++ b/packages/core/src/IconButton/__tests__/IconButtonAudit.a11y.chromium.spec.ts
@@ -12,7 +12,7 @@ import {createHash} from 'node:crypto';
import {execFileSync} from 'node:child_process';
import * as fs from 'node:fs';
import * as path from 'node:path';
-import {expect, test, type Page} from '@playwright/test';
+import {expect, test, type Page} from '@astryxdesign/a11y-spec/playwright';
import {holdMotionStill} from '@astryxdesign/a11y-spec/chromium';
import {
DEFAULT_STORYBOOK_DIR,
diff --git a/packages/core/src/InfoTip/__tests__/InfoTipTouch.a11y.chromium.spec.ts b/packages/core/src/InfoTip/__tests__/InfoTipTouch.a11y.chromium.spec.ts
index f8890c975e..0e67976db3 100644
--- a/packages/core/src/InfoTip/__tests__/InfoTipTouch.a11y.chromium.spec.ts
+++ b/packages/core/src/InfoTip/__tests__/InfoTipTouch.a11y.chromium.spec.ts
@@ -11,7 +11,12 @@
* utils/hitArea.ts's, unit-tested there
*/
-import {expect, test, type Browser, type Page} from '@playwright/test';
+import {
+ expect,
+ test,
+ type Browser,
+ type Page,
+} from '@astryxdesign/a11y-spec/playwright';
import {
DEFAULT_STORYBOOK_DIR,
serveStorybook,
diff --git a/packages/core/src/Item/ItemMarkerColumns.a11y.chromium.spec.ts b/packages/core/src/Item/ItemMarkerColumns.a11y.chromium.spec.ts
index 9b6f3b61f9..6c9a366895 100644
--- a/packages/core/src/Item/ItemMarkerColumns.a11y.chromium.spec.ts
+++ b/packages/core/src/Item/ItemMarkerColumns.a11y.chromium.spec.ts
@@ -11,7 +11,7 @@
import {createHash} from 'node:crypto';
import {readFile, writeFile} from 'node:fs/promises';
import {basename, join} from 'node:path';
-import {expect, test, type Page} from '@playwright/test';
+import {expect, test, type Page} from '@astryxdesign/a11y-spec/playwright';
import {holdMotionStill} from '@astryxdesign/a11y-spec/chromium';
import {
DEFAULT_STORYBOOK_DIR,
diff --git a/packages/core/src/Item/__tests__/ItemSwipeActions.a11y.chromium.spec.ts b/packages/core/src/Item/__tests__/ItemSwipeActions.a11y.chromium.spec.ts
index c380161273..152e67bc81 100644
--- a/packages/core/src/Item/__tests__/ItemSwipeActions.a11y.chromium.spec.ts
+++ b/packages/core/src/Item/__tests__/ItemSwipeActions.a11y.chromium.spec.ts
@@ -16,7 +16,7 @@
* device has already disagreed with jsdom once on this gesture.
*/
-import {expect, test, type Locator} from '@playwright/test';
+import {expect, test, type Locator} from '@astryxdesign/a11y-spec/playwright';
// @ts-expect-error -- pngjs ships no declarations; runtime support is pinned.
import {PNG} from 'pngjs';
import {
diff --git a/packages/core/src/Item/__tests__/ItemSwipePinchZoom.a11y.chromium.spec.ts b/packages/core/src/Item/__tests__/ItemSwipePinchZoom.a11y.chromium.spec.ts
index d36a349d51..d367a7b308 100644
--- a/packages/core/src/Item/__tests__/ItemSwipePinchZoom.a11y.chromium.spec.ts
+++ b/packages/core/src/Item/__tests__/ItemSwipePinchZoom.a11y.chromium.spec.ts
@@ -13,7 +13,12 @@
* gesture's hand-off of a second finger
*/
-import {expect, test, type CDPSession, type Page} from '@playwright/test';
+import {
+ expect,
+ test,
+ type CDPSession,
+ type Page,
+} from '@astryxdesign/a11y-spec/playwright';
import {
DEFAULT_STORYBOOK_DIR,
serveStorybook,
diff --git a/packages/core/src/Layer/__tests__/BackdropPress.a11y.chromium.spec.ts b/packages/core/src/Layer/__tests__/BackdropPress.a11y.chromium.spec.ts
index a53dc69602..7f00468a1a 100644
--- a/packages/core/src/Layer/__tests__/BackdropPress.a11y.chromium.spec.ts
+++ b/packages/core/src/Layer/__tests__/BackdropPress.a11y.chromium.spec.ts
@@ -13,7 +13,7 @@
* click retargeting to the common ancestor.
*/
-import {expect, test, type Page} from '@playwright/test';
+import {expect, test, type Page} from '@astryxdesign/a11y-spec/playwright';
import {holdMotionStill} from '@astryxdesign/a11y-spec/chromium';
import {
DEFAULT_STORYBOOK_DIR,
diff --git a/packages/core/src/Layer/__tests__/LayerBrowserHide.a11y.chromium.spec.ts b/packages/core/src/Layer/__tests__/LayerBrowserHide.a11y.chromium.spec.ts
index 11bb6c99b4..1aa79cd784 100644
--- a/packages/core/src/Layer/__tests__/LayerBrowserHide.a11y.chromium.spec.ts
+++ b/packages/core/src/Layer/__tests__/LayerBrowserHide.a11y.chromium.spec.ts
@@ -20,7 +20,7 @@
* @position Run with `pnpm test:a11y-contract`.
*/
-import {expect, test, type Page} from '@playwright/test';
+import {expect, test, type Page} from '@astryxdesign/a11y-spec/playwright';
import {
DEFAULT_STORYBOOK_DIR,
serveStorybook,
diff --git a/packages/core/src/Layer/__tests__/LayerReducedMotion.a11y.chromium.spec.ts b/packages/core/src/Layer/__tests__/LayerReducedMotion.a11y.chromium.spec.ts
index a027eccefc..63baa5108c 100644
--- a/packages/core/src/Layer/__tests__/LayerReducedMotion.a11y.chromium.spec.ts
+++ b/packages/core/src/Layer/__tests__/LayerReducedMotion.a11y.chromium.spec.ts
@@ -17,7 +17,7 @@
* `use.reducedMotion` does not reach `matchMedia` (playwright.config.ts)
*/
-import {expect, test, type Page} from '@playwright/test';
+import {expect, test, type Page} from '@astryxdesign/a11y-spec/playwright';
import {
DEFAULT_STORYBOOK_DIR,
serveStorybook,
diff --git a/packages/core/src/Layer/__tests__/TouchTrigger.a11y.chromium.spec.ts b/packages/core/src/Layer/__tests__/TouchTrigger.a11y.chromium.spec.ts
index 55ca3be93f..ef89d57d9a 100644
--- a/packages/core/src/Layer/__tests__/TouchTrigger.a11y.chromium.spec.ts
+++ b/packages/core/src/Layer/__tests__/TouchTrigger.a11y.chromium.spec.ts
@@ -25,7 +25,7 @@ import {
type CDPSession,
type Locator,
type Page,
-} from '@playwright/test';
+} from '@astryxdesign/a11y-spec/playwright';
import {
DEFAULT_STORYBOOK_DIR,
serveStorybook,
diff --git a/packages/core/src/Layout/__tests__/Layout.a11y.chromium.spec.ts b/packages/core/src/Layout/__tests__/Layout.a11y.chromium.spec.ts
index fd07e073f9..c5efcc5f8d 100644
--- a/packages/core/src/Layout/__tests__/Layout.a11y.chromium.spec.ts
+++ b/packages/core/src/Layout/__tests__/Layout.a11y.chromium.spec.ts
@@ -9,7 +9,7 @@ import {
type CDPSession,
type Locator,
type Page,
-} from '@playwright/test';
+} from '@astryxdesign/a11y-spec/playwright';
import {
LANDMARK_PATTERN,
blockingResults,
diff --git a/packages/core/src/Lightbox/LightboxKeyboard.a11y.browser.spec.ts b/packages/core/src/Lightbox/LightboxKeyboard.a11y.browser.spec.ts
index 01a6e0af3a..086db40364 100644
--- a/packages/core/src/Lightbox/LightboxKeyboard.a11y.browser.spec.ts
+++ b/packages/core/src/Lightbox/LightboxKeyboard.a11y.browser.spec.ts
@@ -11,7 +11,7 @@
* (design:bidirectionality DR6, DR11)
*/
-import {expect, test, type Page} from '@playwright/test';
+import {expect, test, type Page} from '@astryxdesign/a11y-spec/playwright';
import {
DEFAULT_STORYBOOK_DIR,
serveStorybook,
diff --git a/packages/core/src/Lightbox/LightboxViewport.a11y.browser.spec.ts b/packages/core/src/Lightbox/LightboxViewport.a11y.browser.spec.ts
index 0e0061c9ef..82dc722f56 100644
--- a/packages/core/src/Lightbox/LightboxViewport.a11y.browser.spec.ts
+++ b/packages/core/src/Lightbox/LightboxViewport.a11y.browser.spec.ts
@@ -10,7 +10,7 @@
* @position Cross-browser proof for Lightbox's full-screen sizing
*/
-import {expect, test} from '@playwright/test';
+import {expect, test} from '@astryxdesign/a11y-spec/playwright';
import {
DEFAULT_STORYBOOK_DIR,
serveStorybook,
diff --git a/packages/core/src/Link/__tests__/Link.a11y.chromium.spec.ts b/packages/core/src/Link/__tests__/Link.a11y.chromium.spec.ts
index b89a90e202..2e9ed3c0d0 100644
--- a/packages/core/src/Link/__tests__/Link.a11y.chromium.spec.ts
+++ b/packages/core/src/Link/__tests__/Link.a11y.chromium.spec.ts
@@ -10,7 +10,12 @@
* the story's router component records, and new tabs the page opens.
*/
-import {expect, test, type CDPSession, type Page} from '@playwright/test';
+import {
+ expect,
+ test,
+ type CDPSession,
+ type Page,
+} from '@astryxdesign/a11y-spec/playwright';
import {
LINK_PATTERN,
blockingResults,
diff --git a/packages/core/src/Link/__tests__/Link.navigation.a11y.chromium.spec.ts b/packages/core/src/Link/__tests__/Link.navigation.a11y.chromium.spec.ts
index 9363ffce1a..ed92c23625 100644
--- a/packages/core/src/Link/__tests__/Link.navigation.a11y.chromium.spec.ts
+++ b/packages/core/src/Link/__tests__/Link.navigation.a11y.chromium.spec.ts
@@ -8,7 +8,7 @@
* @position Browser proof for the shared navigation-destination contract
*/
-import {expect, test, type Page} from '@playwright/test';
+import {expect, test, type Page} from '@astryxdesign/a11y-spec/playwright';
import {
DEFAULT_STORYBOOK_DIR,
serveStorybook,
diff --git a/packages/core/src/Link/__tests__/Link.truncation.a11y.chromium.spec.ts b/packages/core/src/Link/__tests__/Link.truncation.a11y.chromium.spec.ts
index 7992e16c0d..13752ac01f 100644
--- a/packages/core/src/Link/__tests__/Link.truncation.a11y.chromium.spec.ts
+++ b/packages/core/src/Link/__tests__/Link.truncation.a11y.chromium.spec.ts
@@ -7,7 +7,7 @@
* button, stops at the line and its label overflows with an ellipsis.
*/
-import {expect, test} from '@playwright/test';
+import {expect, test} from '@astryxdesign/a11y-spec/playwright';
import {
DEFAULT_STORYBOOK_DIR,
serveStorybook,
diff --git a/packages/core/src/Link/__tests__/Link.wrappedLines.a11y.chromium.spec.ts b/packages/core/src/Link/__tests__/Link.wrappedLines.a11y.chromium.spec.ts
index bfede24a2d..a02615499a 100644
--- a/packages/core/src/Link/__tests__/Link.wrappedLines.a11y.chromium.spec.ts
+++ b/packages/core/src/Link/__tests__/Link.wrappedLines.a11y.chromium.spec.ts
@@ -12,7 +12,7 @@
* no lines.
*/
-import {expect, test} from '@playwright/test';
+import {expect, test} from '@astryxdesign/a11y-spec/playwright';
import {
DEFAULT_STORYBOOK_DIR,
serveStorybook,
diff --git a/packages/core/src/List/ListMarkers.a11y.chromium.spec.ts b/packages/core/src/List/ListMarkers.a11y.chromium.spec.ts
index 3076258287..9e03567387 100644
--- a/packages/core/src/List/ListMarkers.a11y.chromium.spec.ts
+++ b/packages/core/src/List/ListMarkers.a11y.chromium.spec.ts
@@ -12,7 +12,7 @@
*/
import {writeFile} from 'node:fs/promises';
-import {expect, test, type Page} from '@playwright/test';
+import {expect, test, type Page} from '@astryxdesign/a11y-spec/playwright';
import {
DEFAULT_STORYBOOK_DIR,
serveStorybook,
diff --git a/packages/core/src/Markdown/MarkdownTable.a11y.chromium.spec.ts b/packages/core/src/Markdown/MarkdownTable.a11y.chromium.spec.ts
index 3f24ff1cfd..21d382ec37 100644
--- a/packages/core/src/Markdown/MarkdownTable.a11y.chromium.spec.ts
+++ b/packages/core/src/Markdown/MarkdownTable.a11y.chromium.spec.ts
@@ -19,7 +19,7 @@
import * as fs from 'node:fs';
import * as path from 'node:path';
-import {expect, test, type Page} from '@playwright/test';
+import {expect, test, type Page} from '@astryxdesign/a11y-spec/playwright';
import {
DEFAULT_STORYBOOK_DIR,
serveStorybook,
diff --git a/packages/core/src/Markdown/__tests__/MarkdownNesting.a11y.chromium.spec.ts b/packages/core/src/Markdown/__tests__/MarkdownNesting.a11y.chromium.spec.ts
index 139aa47818..cfbe0d8134 100644
--- a/packages/core/src/Markdown/__tests__/MarkdownNesting.a11y.chromium.spec.ts
+++ b/packages/core/src/Markdown/__tests__/MarkdownNesting.a11y.chromium.spec.ts
@@ -10,7 +10,7 @@
* @position Browser evidence for Markdown's block nesting cap
*/
-import {expect, test, type Page} from '@playwright/test';
+import {expect, test, type Page} from '@astryxdesign/a11y-spec/playwright';
import {
DEFAULT_STORYBOOK_DIR,
serveStorybook,
diff --git a/packages/core/src/Markdown/plugins/headingLinks.a11y.chromium.spec.ts b/packages/core/src/Markdown/plugins/headingLinks.a11y.chromium.spec.ts
index 261119325c..dedc8dbd65 100644
--- a/packages/core/src/Markdown/plugins/headingLinks.a11y.chromium.spec.ts
+++ b/packages/core/src/Markdown/plugins/headingLinks.a11y.chromium.spec.ts
@@ -14,7 +14,12 @@
import * as fs from 'node:fs';
import * as path from 'node:path';
-import {expect, test, type Locator, type Page} from '@playwright/test';
+import {
+ expect,
+ test,
+ type Locator,
+ type Page,
+} from '@astryxdesign/a11y-spec/playwright';
import {
DEFAULT_STORYBOOK_DIR,
serveStorybook,
diff --git a/packages/core/src/MobileNav/MobileNavPinchZoom.a11y.chromium.spec.ts b/packages/core/src/MobileNav/MobileNavPinchZoom.a11y.chromium.spec.ts
index fcfbf40f9b..7e2e559885 100644
--- a/packages/core/src/MobileNav/MobileNavPinchZoom.a11y.chromium.spec.ts
+++ b/packages/core/src/MobileNav/MobileNavPinchZoom.a11y.chromium.spec.ts
@@ -9,7 +9,12 @@
* @position Chromium proof for MobileNav's touch-action declarations
*/
-import {expect, test, type CDPSession, type Page} from '@playwright/test';
+import {
+ expect,
+ test,
+ type CDPSession,
+ type Page,
+} from '@astryxdesign/a11y-spec/playwright';
import {
DEFAULT_STORYBOOK_DIR,
serveStorybook,
diff --git a/packages/core/src/MobileNav/__tests__/MobileNavHeader.a11y.chromium.spec.ts b/packages/core/src/MobileNav/__tests__/MobileNavHeader.a11y.chromium.spec.ts
index ddf21a1c6d..d7ce693918 100644
--- a/packages/core/src/MobileNav/__tests__/MobileNavHeader.a11y.chromium.spec.ts
+++ b/packages/core/src/MobileNav/__tests__/MobileNavHeader.a11y.chromium.spec.ts
@@ -10,7 +10,7 @@
* MobileNav.tsx, `minHeight`); jsdom has no layout to measure it
*/
-import {expect, test, type Page} from '@playwright/test';
+import {expect, test, type Page} from '@astryxdesign/a11y-spec/playwright';
import {
DEFAULT_STORYBOOK_DIR,
serveStorybook,
diff --git a/packages/core/src/MobileNav/__tests__/MobileNavWidth.a11y.chromium.spec.ts b/packages/core/src/MobileNav/__tests__/MobileNavWidth.a11y.chromium.spec.ts
index 0b176339f0..26067450ff 100644
--- a/packages/core/src/MobileNav/__tests__/MobileNavWidth.a11y.chromium.spec.ts
+++ b/packages/core/src/MobileNav/__tests__/MobileNavWidth.a11y.chromium.spec.ts
@@ -12,7 +12,7 @@
* in MobileNav.tsx); the jsdom layer is MobileNav.test.tsx
*/
-import {expect, test, type Page} from '@playwright/test';
+import {expect, test, type Page} from '@astryxdesign/a11y-spec/playwright';
import {
DEFAULT_STORYBOOK_DIR,
serveStorybook,
diff --git a/packages/core/src/MultiSelector/CreateRow.a11y.chromium.spec.ts b/packages/core/src/MultiSelector/CreateRow.a11y.chromium.spec.ts
index 66c349048d..fc170e419a 100644
--- a/packages/core/src/MultiSelector/CreateRow.a11y.chromium.spec.ts
+++ b/packages/core/src/MultiSelector/CreateRow.a11y.chromium.spec.ts
@@ -14,7 +14,7 @@
* across a sequence of keystrokes.
*/
-import {expect, test, type Page} from '@playwright/test';
+import {expect, test, type Page} from '@astryxdesign/a11y-spec/playwright';
import {
DEFAULT_STORYBOOK_DIR,
serveStorybook,
diff --git a/packages/core/src/MultiSelector/MultiSelector.disabledFocus.a11y.chromium.spec.ts b/packages/core/src/MultiSelector/MultiSelector.disabledFocus.a11y.chromium.spec.ts
index fa581966a9..48efb268a2 100644
--- a/packages/core/src/MultiSelector/MultiSelector.disabledFocus.a11y.chromium.spec.ts
+++ b/packages/core/src/MultiSelector/MultiSelector.disabledFocus.a11y.chromium.spec.ts
@@ -10,7 +10,7 @@
* focus off an element that becomes disabled, so it cannot show the loss.
*/
-import {expect, test} from '@playwright/test';
+import {expect, test} from '@astryxdesign/a11y-spec/playwright';
import {
DEFAULT_STORYBOOK_DIR,
serveStorybook,
diff --git a/packages/core/src/MultiSelector/OptionActions.a11y.chromium.spec.ts b/packages/core/src/MultiSelector/OptionActions.a11y.chromium.spec.ts
index f336979d08..0443095d29 100644
--- a/packages/core/src/MultiSelector/OptionActions.a11y.chromium.spec.ts
+++ b/packages/core/src/MultiSelector/OptionActions.a11y.chromium.spec.ts
@@ -15,7 +15,12 @@
* active descendant as an engine exposes them are not jsdom claims.
*/
-import {expect, test, type Locator, type Page} from '@playwright/test';
+import {
+ expect,
+ test,
+ type Locator,
+ type Page,
+} from '@astryxdesign/a11y-spec/playwright';
import {
DEFAULT_STORYBOOK_DIR,
serveStorybook,
diff --git a/packages/core/src/MultiSelector/__tests__/MultiSelector.a11y.chromium.spec.ts b/packages/core/src/MultiSelector/__tests__/MultiSelector.a11y.chromium.spec.ts
index 6575a55e5a..46b275d5e4 100644
--- a/packages/core/src/MultiSelector/__tests__/MultiSelector.a11y.chromium.spec.ts
+++ b/packages/core/src/MultiSelector/__tests__/MultiSelector.a11y.chromium.spec.ts
@@ -8,7 +8,7 @@
* @position Browser-only accessibility regression test for MultiSelector
*/
-import {expect, test} from '@playwright/test';
+import {expect, test} from '@astryxdesign/a11y-spec/playwright';
import {
DEFAULT_STORYBOOK_DIR,
serveStorybook,
diff --git a/packages/core/src/NavMenu/__tests__/NavMenusSlideSelection.a11y.chromium.spec.ts b/packages/core/src/NavMenu/__tests__/NavMenusSlideSelection.a11y.chromium.spec.ts
index f4c28862d1..3e053c5181 100644
--- a/packages/core/src/NavMenu/__tests__/NavMenusSlideSelection.a11y.chromium.spec.ts
+++ b/packages/core/src/NavMenu/__tests__/NavMenusSlideSelection.a11y.chromium.spec.ts
@@ -12,7 +12,7 @@
* TopNav and TabList (`family:action-groups` FR1-FR2)
*/
-import {expect, test, type Page} from '@playwright/test';
+import {expect, test, type Page} from '@astryxdesign/a11y-spec/playwright';
import {
DEFAULT_STORYBOOK_DIR,
serveStorybook,
diff --git a/packages/core/src/NumberInput/__tests__/NumberInput.a11y.chromium.spec.ts b/packages/core/src/NumberInput/__tests__/NumberInput.a11y.chromium.spec.ts
index d21ba54d31..b9b7980a9d 100644
--- a/packages/core/src/NumberInput/__tests__/NumberInput.a11y.chromium.spec.ts
+++ b/packages/core/src/NumberInput/__tests__/NumberInput.a11y.chromium.spec.ts
@@ -3,7 +3,12 @@
/** Real-browser and accessibility-tree binding evidence for NumberInput. */
-import {expect, test, type CDPSession, type Page} from '@playwright/test';
+import {
+ expect,
+ test,
+ type CDPSession,
+ type Page,
+} from '@astryxdesign/a11y-spec/playwright';
import {
SPINBUTTON_PATTERN,
blockingResults,
diff --git a/packages/core/src/NumberInput/__tests__/NumberInput.coarse-pointer.a11y.chromium.spec.ts b/packages/core/src/NumberInput/__tests__/NumberInput.coarse-pointer.a11y.chromium.spec.ts
index 85457ed677..bc37f9f462 100644
--- a/packages/core/src/NumberInput/__tests__/NumberInput.coarse-pointer.a11y.chromium.spec.ts
+++ b/packages/core/src/NumberInput/__tests__/NumberInput.coarse-pointer.a11y.chromium.spec.ts
@@ -2,7 +2,7 @@
/** Real-browser proof of NumberInput's coarse-pointer stepper presentation. */
-import {expect, test} from '@playwright/test';
+import {expect, test} from '@astryxdesign/a11y-spec/playwright';
import {holdMotionStill} from '@astryxdesign/a11y-spec/chromium';
import {
DEFAULT_STORYBOOK_DIR,
diff --git a/packages/core/src/Outline/OutlineFocus.a11y.chromium.spec.ts b/packages/core/src/Outline/OutlineFocus.a11y.chromium.spec.ts
index 9b69d79419..248c1a6170 100644
--- a/packages/core/src/Outline/OutlineFocus.a11y.chromium.spec.ts
+++ b/packages/core/src/Outline/OutlineFocus.a11y.chromium.spec.ts
@@ -11,7 +11,12 @@
import {execFileSync} from 'node:child_process';
import * as fs from 'node:fs';
import * as path from 'node:path';
-import {expect, test, type Browser, type Page} from '@playwright/test';
+import {
+ expect,
+ test,
+ type Browser,
+ type Page,
+} from '@astryxdesign/a11y-spec/playwright';
import pixelmatch from 'pixelmatch';
// @ts-expect-error -- pngjs ships no declarations; runtime support is pinned.
import {PNG} from 'pngjs';
diff --git a/packages/core/src/Popover/__tests__/PopoverSecondDocument.a11y.chromium.spec.ts b/packages/core/src/Popover/__tests__/PopoverSecondDocument.a11y.chromium.spec.ts
index 6b79e4c105..b8b270c3fc 100644
--- a/packages/core/src/Popover/__tests__/PopoverSecondDocument.a11y.chromium.spec.ts
+++ b/packages/core/src/Popover/__tests__/PopoverSecondDocument.a11y.chromium.spec.ts
@@ -27,7 +27,7 @@ import {
type Keyboard,
type Locator,
type Page,
-} from '@playwright/test';
+} from '@astryxdesign/a11y-spec/playwright';
import {holdMotionStill} from '@astryxdesign/a11y-spec/chromium';
import {
DEFAULT_STORYBOOK_DIR,
diff --git a/packages/core/src/ProgressBar/__tests__/ProgressBar.a11y.chromium.spec.ts b/packages/core/src/ProgressBar/__tests__/ProgressBar.a11y.chromium.spec.ts
index 673838700d..44c051f060 100644
--- a/packages/core/src/ProgressBar/__tests__/ProgressBar.a11y.chromium.spec.ts
+++ b/packages/core/src/ProgressBar/__tests__/ProgressBar.a11y.chromium.spec.ts
@@ -14,7 +14,7 @@ import {
type CDPSession,
type Locator,
type Page,
-} from '@playwright/test';
+} from '@astryxdesign/a11y-spec/playwright';
import {
PROGRESSBAR_PATTERN,
blockingResults,
diff --git a/packages/core/src/ProgressBar/__tests__/ProgressBarMotion.a11y.chromium.spec.ts b/packages/core/src/ProgressBar/__tests__/ProgressBarMotion.a11y.chromium.spec.ts
index 111f107028..182f864a67 100644
--- a/packages/core/src/ProgressBar/__tests__/ProgressBarMotion.a11y.chromium.spec.ts
+++ b/packages/core/src/ProgressBar/__tests__/ProgressBarMotion.a11y.chromium.spec.ts
@@ -18,7 +18,7 @@
import fs from 'node:fs';
import path from 'node:path';
-import {expect, test, type Page} from '@playwright/test';
+import {expect, test, type Page} from '@astryxdesign/a11y-spec/playwright';
import {
DEFAULT_STORYBOOK_DIR,
serveStorybook,
diff --git a/packages/core/src/ProgressBar/__tests__/ProgressBarTouch.a11y.chromium.spec.ts b/packages/core/src/ProgressBar/__tests__/ProgressBarTouch.a11y.chromium.spec.ts
index 1ec35da122..6bb95faa31 100644
--- a/packages/core/src/ProgressBar/__tests__/ProgressBarTouch.a11y.chromium.spec.ts
+++ b/packages/core/src/ProgressBar/__tests__/ProgressBarTouch.a11y.chromium.spec.ts
@@ -16,7 +16,7 @@
import fs from 'node:fs';
import path from 'node:path';
-import {expect, test, type Page} from '@playwright/test';
+import {expect, test, type Page} from '@astryxdesign/a11y-spec/playwright';
import {
DEFAULT_STORYBOOK_DIR,
serveStorybook,
diff --git a/packages/core/src/RadioList/__tests__/RadioGroup.a11y.chromium.spec.ts b/packages/core/src/RadioList/__tests__/RadioGroup.a11y.chromium.spec.ts
index 49c1822693..4eefff5dff 100644
--- a/packages/core/src/RadioList/__tests__/RadioGroup.a11y.chromium.spec.ts
+++ b/packages/core/src/RadioList/__tests__/RadioGroup.a11y.chromium.spec.ts
@@ -16,7 +16,7 @@ import {
type CDPSession,
type Locator,
type Page,
-} from '@playwright/test';
+} from '@astryxdesign/a11y-spec/playwright';
import {
RADIO_GROUP_PATTERN,
blockingResults,
diff --git a/packages/core/src/Resizable/__tests__/ResizeHandle.a11y.chromium.spec.ts b/packages/core/src/Resizable/__tests__/ResizeHandle.a11y.chromium.spec.ts
index 79d2de5b42..06960288b8 100644
--- a/packages/core/src/Resizable/__tests__/ResizeHandle.a11y.chromium.spec.ts
+++ b/packages/core/src/Resizable/__tests__/ResizeHandle.a11y.chromium.spec.ts
@@ -14,7 +14,7 @@ import {
type CDPSession,
type Locator,
type Page,
-} from '@playwright/test';
+} from '@astryxdesign/a11y-spec/playwright';
import {
WINDOW_SPLITTER_PATTERN,
blockingResults,
diff --git a/packages/core/src/Resizable/__tests__/grabZone.interaction.browser.spec.ts b/packages/core/src/Resizable/__tests__/grabZone.interaction.browser.spec.ts
index 149d2161d0..57754f4cc6 100644
--- a/packages/core/src/Resizable/__tests__/grabZone.interaction.browser.spec.ts
+++ b/packages/core/src/Resizable/__tests__/grabZone.interaction.browser.spec.ts
@@ -14,7 +14,7 @@
* @position Browser proof for ResizeHandle.tsx's Grab zone
*/
-import {expect, test, type Page} from '@playwright/test';
+import {expect, test, type Page} from '@astryxdesign/a11y-spec/playwright';
import {openStory, withStorybook} from '@astryxdesign/interaction-harness';
const storybook = withStorybook(test);
diff --git a/packages/core/src/SegmentedControl/__tests__/SegmentedControl.interaction.browser.spec.ts b/packages/core/src/SegmentedControl/__tests__/SegmentedControl.interaction.browser.spec.ts
index 3e508acca5..3b9db2b4b1 100644
--- a/packages/core/src/SegmentedControl/__tests__/SegmentedControl.interaction.browser.spec.ts
+++ b/packages/core/src/SegmentedControl/__tests__/SegmentedControl.interaction.browser.spec.ts
@@ -21,7 +21,7 @@ import {
type BrowserContext,
type Locator,
type Page,
-} from '@playwright/test';
+} from '@astryxdesign/a11y-spec/playwright';
// @ts-expect-error -- pngjs ships no declarations; runtime support is pinned.
import {PNG} from 'pngjs';
import {
diff --git a/packages/core/src/Selector/__tests__/ComboboxField.a11y.chromium.spec.ts b/packages/core/src/Selector/__tests__/ComboboxField.a11y.chromium.spec.ts
index 9094e044a4..f7dd5cbfdf 100644
--- a/packages/core/src/Selector/__tests__/ComboboxField.a11y.chromium.spec.ts
+++ b/packages/core/src/Selector/__tests__/ComboboxField.a11y.chromium.spec.ts
@@ -12,7 +12,12 @@
*/
import AxeBuilder from '@axe-core/playwright';
-import {expect, test, type Locator, type Page} from '@playwright/test';
+import {
+ expect,
+ test,
+ type Locator,
+ type Page,
+} from '@astryxdesign/a11y-spec/playwright';
import {
COMBOBOX_PATTERN,
blockingResults,
diff --git a/packages/core/src/Selector/__tests__/EmptyStateAnnouncement.a11y.chromium.spec.ts b/packages/core/src/Selector/__tests__/EmptyStateAnnouncement.a11y.chromium.spec.ts
index 3eb29afabb..0b22c4912c 100644
--- a/packages/core/src/Selector/__tests__/EmptyStateAnnouncement.a11y.chromium.spec.ts
+++ b/packages/core/src/Selector/__tests__/EmptyStateAnnouncement.a11y.chromium.spec.ts
@@ -16,7 +16,7 @@
* this file is that evidence; the ledger's own slice is untouched.
*/
-import {expect, test} from '@playwright/test';
+import {expect, test} from '@astryxdesign/a11y-spec/playwright';
import {
serveStorybook,
DEFAULT_STORYBOOK_DIR,
diff --git a/packages/core/src/Selector/__tests__/Listbox.a11y.chromium.spec.ts b/packages/core/src/Selector/__tests__/Listbox.a11y.chromium.spec.ts
index 494a8d6fc8..10831793d2 100644
--- a/packages/core/src/Selector/__tests__/Listbox.a11y.chromium.spec.ts
+++ b/packages/core/src/Selector/__tests__/Listbox.a11y.chromium.spec.ts
@@ -8,7 +8,7 @@
* @position Browser binding; keyboard policy, pixels, and real AT remain separate owners.
*/
-import {expect, test} from '@playwright/test';
+import {expect, test} from '@astryxdesign/a11y-spec/playwright';
import {
LISTBOX_PATTERN,
checkAccessibilitySpec,
diff --git a/packages/core/src/Selector/__tests__/Selector.a11y.chromium.spec.ts b/packages/core/src/Selector/__tests__/Selector.a11y.chromium.spec.ts
index bffb544591..fbeea9fa03 100644
--- a/packages/core/src/Selector/__tests__/Selector.a11y.chromium.spec.ts
+++ b/packages/core/src/Selector/__tests__/Selector.a11y.chromium.spec.ts
@@ -8,7 +8,7 @@
* @position Browser-only accessibility regression test for Selector
*/
-import {expect, test} from '@playwright/test';
+import {expect, test} from '@astryxdesign/a11y-spec/playwright';
import {
DEFAULT_STORYBOOK_DIR,
serveStorybook,
diff --git a/packages/core/src/Selector/__tests__/Selector.combobox.a11y.chromium.spec.ts b/packages/core/src/Selector/__tests__/Selector.combobox.a11y.chromium.spec.ts
index 6d2a83a788..a1e6102ee6 100644
--- a/packages/core/src/Selector/__tests__/Selector.combobox.a11y.chromium.spec.ts
+++ b/packages/core/src/Selector/__tests__/Selector.combobox.a11y.chromium.spec.ts
@@ -3,7 +3,12 @@
/** Chromium accessibility-tree and relationship proof for Selector's Combobox binding. */
-import {expect, test, type Locator, type Page} from '@playwright/test';
+import {
+ expect,
+ test,
+ type Locator,
+ type Page,
+} from '@astryxdesign/a11y-spec/playwright';
import {
blockingResults,
checkAccessibilitySpec,
diff --git a/packages/core/src/Selector/__tests__/SelectorListboxName.a11y.chromium.spec.ts b/packages/core/src/Selector/__tests__/SelectorListboxName.a11y.chromium.spec.ts
index 9ba6735ec9..c5d7c8b546 100644
--- a/packages/core/src/Selector/__tests__/SelectorListboxName.a11y.chromium.spec.ts
+++ b/packages/core/src/Selector/__tests__/SelectorListboxName.a11y.chromium.spec.ts
@@ -12,7 +12,7 @@
* behave differently in jsdom.
*/
-import {expect, test, type Page} from '@playwright/test';
+import {expect, test, type Page} from '@astryxdesign/a11y-spec/playwright';
import {
DEFAULT_STORYBOOK_DIR,
serveStorybook,
diff --git a/packages/core/src/Selector/__tests__/SelectorReducedMotion.a11y.chromium.spec.ts b/packages/core/src/Selector/__tests__/SelectorReducedMotion.a11y.chromium.spec.ts
index 91b49da575..5d7fc5b64d 100644
--- a/packages/core/src/Selector/__tests__/SelectorReducedMotion.a11y.chromium.spec.ts
+++ b/packages/core/src/Selector/__tests__/SelectorReducedMotion.a11y.chromium.spec.ts
@@ -10,7 +10,7 @@
* @position Real-browser check: jsdom evaluates no media queries.
*/
-import {expect, test, type Page} from '@playwright/test';
+import {expect, test, type Page} from '@astryxdesign/a11y-spec/playwright';
import {
DEFAULT_STORYBOOK_DIR,
serveStorybook,
diff --git a/packages/core/src/SideNav/__tests__/SideNavCollapseFocus.a11y.chromium.spec.ts b/packages/core/src/SideNav/__tests__/SideNavCollapseFocus.a11y.chromium.spec.ts
index dac9d65593..f677d3ab7b 100644
--- a/packages/core/src/SideNav/__tests__/SideNavCollapseFocus.a11y.chromium.spec.ts
+++ b/packages/core/src/SideNav/__tests__/SideNavCollapseFocus.a11y.chromium.spec.ts
@@ -14,7 +14,7 @@
* SYNC: When modified, update the AR3 Verification row in SideNav.spec.md.
*/
-import {expect, test, type Page} from '@playwright/test';
+import {expect, test, type Page} from '@astryxdesign/a11y-spec/playwright';
import {
DEFAULT_STORYBOOK_DIR,
serveStorybook,
diff --git a/packages/core/src/SideNav/__tests__/SideNavRailMotion.interaction.browser.spec.ts b/packages/core/src/SideNav/__tests__/SideNavRailMotion.interaction.browser.spec.ts
index 51d5a605cb..99bdef377e 100644
--- a/packages/core/src/SideNav/__tests__/SideNavRailMotion.interaction.browser.spec.ts
+++ b/packages/core/src/SideNav/__tests__/SideNavRailMotion.interaction.browser.spec.ts
@@ -22,7 +22,7 @@
* SideNav.spec.md and the FR17 Verification row in AppShell.spec.md.
*/
-import {expect, test, type Page} from '@playwright/test';
+import {expect, test, type Page} from '@astryxdesign/a11y-spec/playwright';
import {
DEFAULT_STORYBOOK_DIR,
serveStorybook,
diff --git a/packages/core/src/Slider/__tests__/Slider.a11y.chromium.spec.ts b/packages/core/src/Slider/__tests__/Slider.a11y.chromium.spec.ts
index 89849e9360..d0cf094721 100644
--- a/packages/core/src/Slider/__tests__/Slider.a11y.chromium.spec.ts
+++ b/packages/core/src/Slider/__tests__/Slider.a11y.chromium.spec.ts
@@ -14,7 +14,7 @@ import {
type CDPSession,
type Locator,
type Page,
-} from '@playwright/test';
+} from '@astryxdesign/a11y-spec/playwright';
import {
SLIDER_PATTERN,
blockingResults,
diff --git a/packages/core/src/Slider/__tests__/SliderFinePointer.interaction.browser.spec.ts b/packages/core/src/Slider/__tests__/SliderFinePointer.interaction.browser.spec.ts
index dc28c4318c..250e3ebbb5 100644
--- a/packages/core/src/Slider/__tests__/SliderFinePointer.interaction.browser.spec.ts
+++ b/packages/core/src/Slider/__tests__/SliderFinePointer.interaction.browser.spec.ts
@@ -12,7 +12,12 @@
* which drives a finger under phone emulation.
*/
-import {expect, test, type Locator, type Page} from '@playwright/test';
+import {
+ expect,
+ test,
+ type Locator,
+ type Page,
+} from '@astryxdesign/a11y-spec/playwright';
import {
openStory,
WHEEL_SKIP,
diff --git a/packages/core/src/Slider/__tests__/SliderGeometry.a11y.chromium.spec.ts b/packages/core/src/Slider/__tests__/SliderGeometry.a11y.chromium.spec.ts
index c69905e6a2..68dafe2d1e 100644
--- a/packages/core/src/Slider/__tests__/SliderGeometry.a11y.chromium.spec.ts
+++ b/packages/core/src/Slider/__tests__/SliderGeometry.a11y.chromium.spec.ts
@@ -7,7 +7,7 @@
* @position Slider geometry proof. jsdom computes neither container units nor translate, so placement is checked here
*/
-import {expect, test, type Page} from '@playwright/test';
+import {expect, test, type Page} from '@astryxdesign/a11y-spec/playwright';
import {
DEFAULT_STORYBOOK_DIR,
serveStorybook,
diff --git a/packages/core/src/Slider/__tests__/SliderTouch.interaction.browser.spec.ts b/packages/core/src/Slider/__tests__/SliderTouch.interaction.browser.spec.ts
index 6cc65e1c60..15c5946fc4 100644
--- a/packages/core/src/Slider/__tests__/SliderTouch.interaction.browser.spec.ts
+++ b/packages/core/src/Slider/__tests__/SliderTouch.interaction.browser.spec.ts
@@ -13,7 +13,12 @@
* are useSliderTouch.test.tsx and motion/uikit/slider.test.ts.
*/
-import {expect, test, type Locator, type Page} from '@playwright/test';
+import {
+ expect,
+ test,
+ type Locator,
+ type Page,
+} from '@astryxdesign/a11y-spec/playwright';
import {
blockMainThread,
busyWindowProof,
diff --git a/packages/core/src/Spinner/__tests__/SpinnerMotion.a11y.chromium.spec.ts b/packages/core/src/Spinner/__tests__/SpinnerMotion.a11y.chromium.spec.ts
index fe9ee2f668..6b53916e03 100644
--- a/packages/core/src/Spinner/__tests__/SpinnerMotion.a11y.chromium.spec.ts
+++ b/packages/core/src/Spinner/__tests__/SpinnerMotion.a11y.chromium.spec.ts
@@ -10,7 +10,7 @@
* SYNC: Keep the timings here equal to Spinner.tsx (`styles.rotor`).
*/
-import {expect, test, type Page} from '@playwright/test';
+import {expect, test, type Page} from '@astryxdesign/a11y-spec/playwright';
import {
DEFAULT_STORYBOOK_DIR,
serveStorybook,
diff --git a/packages/core/src/Switch/__tests__/Switch.a11y.chromium.spec.ts b/packages/core/src/Switch/__tests__/Switch.a11y.chromium.spec.ts
index 9c04dde524..152df6e35e 100644
--- a/packages/core/src/Switch/__tests__/Switch.a11y.chromium.spec.ts
+++ b/packages/core/src/Switch/__tests__/Switch.a11y.chromium.spec.ts
@@ -20,7 +20,12 @@
* ./Switch.a11y.known-failures.ts, both shared with the jsdom lane.
*/
-import {expect, test, type CDPSession, type Page} from '@playwright/test';
+import {
+ expect,
+ test,
+ type CDPSession,
+ type Page,
+} from '@astryxdesign/a11y-spec/playwright';
import {
SWITCH_PATTERN,
blockingResults,
diff --git a/packages/core/src/Switch/__tests__/Switch.interaction.browser.spec.ts b/packages/core/src/Switch/__tests__/Switch.interaction.browser.spec.ts
index 25331242d5..b1f50c011e 100644
--- a/packages/core/src/Switch/__tests__/Switch.interaction.browser.spec.ts
+++ b/packages/core/src/Switch/__tests__/Switch.interaction.browser.spec.ts
@@ -20,7 +20,7 @@ import {
type Browser,
type Locator,
type Page,
-} from '@playwright/test';
+} from '@astryxdesign/a11y-spec/playwright';
import {
castStoryboard,
animationStoryboard,
diff --git a/packages/core/src/Switch/__tests__/SwitchPointer.interaction.browser.spec.ts b/packages/core/src/Switch/__tests__/SwitchPointer.interaction.browser.spec.ts
index 403685fd52..74e2ed1191 100644
--- a/packages/core/src/Switch/__tests__/SwitchPointer.interaction.browser.spec.ts
+++ b/packages/core/src/Switch/__tests__/SwitchPointer.interaction.browser.spec.ts
@@ -14,7 +14,12 @@
* touch presentation under a finger.
*/
-import {expect, test, type Browser, type Page} from '@playwright/test';
+import {
+ expect,
+ test,
+ type Browser,
+ type Page,
+} from '@astryxdesign/a11y-spec/playwright';
import {
openStory,
PEN_SKIP,
diff --git a/packages/core/src/TabList/__tests__/TabListOverflow.interaction.browser.spec.ts b/packages/core/src/TabList/__tests__/TabListOverflow.interaction.browser.spec.ts
index 4d877e6da1..812361631f 100644
--- a/packages/core/src/TabList/__tests__/TabListOverflow.interaction.browser.spec.ts
+++ b/packages/core/src/TabList/__tests__/TabListOverflow.interaction.browser.spec.ts
@@ -12,7 +12,7 @@
* /packages/core/src/TabList
*/
-import {expect, test, type Page} from '@playwright/test';
+import {expect, test, type Page} from '@astryxdesign/a11y-spec/playwright';
import {
DEFAULT_STORYBOOK_DIR,
serveStorybook,
diff --git a/packages/core/src/TabList/__tests__/TabPressPointer.interaction.browser.spec.ts b/packages/core/src/TabList/__tests__/TabPressPointer.interaction.browser.spec.ts
index ebeff05627..5b4e4ca15b 100644
--- a/packages/core/src/TabList/__tests__/TabPressPointer.interaction.browser.spec.ts
+++ b/packages/core/src/TabList/__tests__/TabPressPointer.interaction.browser.spec.ts
@@ -17,7 +17,12 @@
* DevTools protocol.
*/
-import {expect, test, type CDPSession, type Page} from '@playwright/test';
+import {
+ expect,
+ test,
+ type CDPSession,
+ type Page,
+} from '@astryxdesign/a11y-spec/playwright';
import {openStory, withStorybook} from '@astryxdesign/interaction-harness';
const storybook = withStorybook(test);
diff --git a/packages/core/src/TabList/__tests__/Tabs.a11y.chromium.spec.ts b/packages/core/src/TabList/__tests__/Tabs.a11y.chromium.spec.ts
index f6547200b1..b7ba23ff76 100644
--- a/packages/core/src/TabList/__tests__/Tabs.a11y.chromium.spec.ts
+++ b/packages/core/src/TabList/__tests__/Tabs.a11y.chromium.spec.ts
@@ -14,7 +14,7 @@ import {
type CDPSession,
type Locator,
type Page,
-} from '@playwright/test';
+} from '@astryxdesign/a11y-spec/playwright';
import {
TABS_PATTERN,
blockingResults,
diff --git a/packages/core/src/Table/__tests__/Table.a11y.chromium.spec.ts b/packages/core/src/Table/__tests__/Table.a11y.chromium.spec.ts
index 6e06821c18..97b6025da1 100644
--- a/packages/core/src/Table/__tests__/Table.a11y.chromium.spec.ts
+++ b/packages/core/src/Table/__tests__/Table.a11y.chromium.spec.ts
@@ -9,7 +9,7 @@ import {
type CDPSession,
type Locator,
type Page,
-} from '@playwright/test';
+} from '@astryxdesign/a11y-spec/playwright';
import {
blockingResults,
checkAccessibilitySpec,
diff --git a/packages/core/src/Table/__tests__/TableCellMenus.a11y.browser.spec.ts b/packages/core/src/Table/__tests__/TableCellMenus.a11y.browser.spec.ts
index 0a69fcea0c..52b80f8749 100644
--- a/packages/core/src/Table/__tests__/TableCellMenus.a11y.browser.spec.ts
+++ b/packages/core/src/Table/__tests__/TableCellMenus.a11y.browser.spec.ts
@@ -16,7 +16,12 @@
* open (row expansion gives every body cell a context menu)
*/
-import {expect, test, type Locator, type Page} from '@playwright/test';
+import {
+ expect,
+ test,
+ type Locator,
+ type Page,
+} from '@astryxdesign/a11y-spec/playwright';
import {
DEFAULT_STORYBOOK_DIR,
serveStorybook,
diff --git a/packages/core/src/Table/__tests__/TableColumnResizeName.a11y.chromium.spec.ts b/packages/core/src/Table/__tests__/TableColumnResizeName.a11y.chromium.spec.ts
index 785a04d74b..c1f56e4452 100644
--- a/packages/core/src/Table/__tests__/TableColumnResizeName.a11y.chromium.spec.ts
+++ b/packages/core/src/Table/__tests__/TableColumnResizeName.a11y.chromium.spec.ts
@@ -11,7 +11,7 @@
* differs between engines and jsdom.
*/
-import {expect, test} from '@playwright/test';
+import {expect, test} from '@astryxdesign/a11y-spec/playwright';
import {
DEFAULT_STORYBOOK_DIR,
serveStorybook,
diff --git a/packages/core/src/Table/__tests__/TableMinWidth.a11y.chromium.spec.ts b/packages/core/src/Table/__tests__/TableMinWidth.a11y.chromium.spec.ts
index 6865556512..6d2891cfbe 100644
--- a/packages/core/src/Table/__tests__/TableMinWidth.a11y.chromium.spec.ts
+++ b/packages/core/src/Table/__tests__/TableMinWidth.a11y.chromium.spec.ts
@@ -8,7 +8,7 @@
* @position Table integration proof; jsdom keeps invalid strings, so validity is checked here
*/
-import {expect, test} from '@playwright/test';
+import {expect, test} from '@astryxdesign/a11y-spec/playwright';
import {resolveTableMinWidth} from '../columnUtils';
// Consumer values a caller can pass as `style.minWidth`, including the
diff --git a/packages/core/src/Table/__tests__/TableRowGlide.a11y.browser.spec.ts b/packages/core/src/Table/__tests__/TableRowGlide.a11y.browser.spec.ts
index 8875402e83..ba593606d7 100644
--- a/packages/core/src/Table/__tests__/TableRowGlide.a11y.browser.spec.ts
+++ b/packages/core/src/Table/__tests__/TableRowGlide.a11y.browser.spec.ts
@@ -13,7 +13,7 @@
* adoption and glidingDivider.ts
*/
-import {expect, test, type Page} from '@playwright/test';
+import {expect, test, type Page} from '@astryxdesign/a11y-spec/playwright';
import {
DEFAULT_STORYBOOK_DIR,
serveStorybook,
diff --git a/packages/core/src/Table/__tests__/TableScroll.a11y.chromium.spec.ts b/packages/core/src/Table/__tests__/TableScroll.a11y.chromium.spec.ts
index 21f08a27ed..a0a71a849a 100644
--- a/packages/core/src/Table/__tests__/TableScroll.a11y.chromium.spec.ts
+++ b/packages/core/src/Table/__tests__/TableScroll.a11y.chromium.spec.ts
@@ -8,7 +8,12 @@
* @position Table integration proof for the shared useScrollableArea behavior
*/
-import {expect, test, type Locator, type Page} from '@playwright/test';
+import {
+ expect,
+ test,
+ type Locator,
+ type Page,
+} from '@astryxdesign/a11y-spec/playwright';
import {
DEFAULT_STORYBOOK_DIR,
serveStorybook,
diff --git a/packages/core/src/Table/__tests__/TableStickyDividers.a11y.browser.spec.ts b/packages/core/src/Table/__tests__/TableStickyDividers.a11y.browser.spec.ts
index 84de3d2e48..6d940ae911 100644
--- a/packages/core/src/Table/__tests__/TableStickyDividers.a11y.browser.spec.ts
+++ b/packages/core/src/Table/__tests__/TableStickyDividers.a11y.browser.spec.ts
@@ -15,7 +15,7 @@
* and was missing where that cell had none.
*/
-import {expect, test, type Page} from '@playwright/test';
+import {expect, test, type Page} from '@astryxdesign/a11y-spec/playwright';
import {
DEFAULT_STORYBOOK_DIR,
serveStorybook,
diff --git a/packages/core/src/Text/__tests__/TextReflow.a11y.chromium.spec.ts b/packages/core/src/Text/__tests__/TextReflow.a11y.chromium.spec.ts
index 039359e4d4..f1387200ee 100644
--- a/packages/core/src/Text/__tests__/TextReflow.a11y.chromium.spec.ts
+++ b/packages/core/src/Text/__tests__/TextReflow.a11y.chromium.spec.ts
@@ -15,7 +15,12 @@
* @position Text and Heading FR3 browser evidence
*/
-import {expect, test, type Locator, type Page} from '@playwright/test';
+import {
+ expect,
+ test,
+ type Locator,
+ type Page,
+} from '@astryxdesign/a11y-spec/playwright';
import {
DEFAULT_STORYBOOK_DIR,
serveStorybook,
diff --git a/packages/core/src/TextArea/__tests__/TextAreaKeyboardTraits.a11y.chromium.spec.ts b/packages/core/src/TextArea/__tests__/TextAreaKeyboardTraits.a11y.chromium.spec.ts
index f5ee9818f8..af940793a5 100644
--- a/packages/core/src/TextArea/__tests__/TextAreaKeyboardTraits.a11y.chromium.spec.ts
+++ b/packages/core/src/TextArea/__tests__/TextAreaKeyboardTraits.a11y.chromium.spec.ts
@@ -13,7 +13,7 @@
* textarea a tap focuses carries when the keyboard opens.
*/
-import {expect, test, type Locator} from '@playwright/test';
+import {expect, test, type Locator} from '@astryxdesign/a11y-spec/playwright';
import {
DEFAULT_STORYBOOK_DIR,
serveStorybook,
diff --git a/packages/core/src/TextInput/__tests__/TextInput.a11y.chromium.spec.ts b/packages/core/src/TextInput/__tests__/TextInput.a11y.chromium.spec.ts
index 09ca28a7aa..11707a43af 100644
--- a/packages/core/src/TextInput/__tests__/TextInput.a11y.chromium.spec.ts
+++ b/packages/core/src/TextInput/__tests__/TextInput.a11y.chromium.spec.ts
@@ -15,7 +15,7 @@ import {
type CDPSession,
type Locator,
type Page,
-} from '@playwright/test';
+} from '@astryxdesign/a11y-spec/playwright';
import {
TEXT_INPUT_PATTERN,
blockingResults,
diff --git a/packages/core/src/TextInput/__tests__/TextInputKeyboardTraits.a11y.chromium.spec.ts b/packages/core/src/TextInput/__tests__/TextInputKeyboardTraits.a11y.chromium.spec.ts
index 5e81210ce5..5fe2e90e21 100644
--- a/packages/core/src/TextInput/__tests__/TextInputKeyboardTraits.a11y.chromium.spec.ts
+++ b/packages/core/src/TextInput/__tests__/TextInputKeyboardTraits.a11y.chromium.spec.ts
@@ -13,7 +13,7 @@
* input a tap focuses carries when the keyboard opens.
*/
-import {expect, test, type Locator} from '@playwright/test';
+import {expect, test, type Locator} from '@astryxdesign/a11y-spec/playwright';
import {
DEFAULT_STORYBOOK_DIR,
serveStorybook,
diff --git a/packages/core/src/ToggleButton/__tests__/ToggleButton.a11y.chromium.spec.ts b/packages/core/src/ToggleButton/__tests__/ToggleButton.a11y.chromium.spec.ts
index 123e96b855..12990253a2 100644
--- a/packages/core/src/ToggleButton/__tests__/ToggleButton.a11y.chromium.spec.ts
+++ b/packages/core/src/ToggleButton/__tests__/ToggleButton.a11y.chromium.spec.ts
@@ -11,7 +11,12 @@
* apps/storybook/stories/ToggleButtonPatternA11y.stories.tsx.
*/
-import {expect, test, type CDPSession, type Page} from '@playwright/test';
+import {
+ expect,
+ test,
+ type CDPSession,
+ type Page,
+} from '@astryxdesign/a11y-spec/playwright';
import {
TOGGLE_BUTTON_PATTERN,
blockingResults,
diff --git a/packages/core/src/Token/__tests__/TokenRemoveTarget.a11y.chromium.spec.ts b/packages/core/src/Token/__tests__/TokenRemoveTarget.a11y.chromium.spec.ts
index d71adb5461..0e23b063bd 100644
--- a/packages/core/src/Token/__tests__/TokenRemoveTarget.a11y.chromium.spec.ts
+++ b/packages/core/src/Token/__tests__/TokenRemoveTarget.a11y.chromium.spec.ts
@@ -12,7 +12,7 @@
* the remove target's reach is only observable here.
*/
-import {expect, test, type Page} from '@playwright/test';
+import {expect, test, type Page} from '@astryxdesign/a11y-spec/playwright';
import {
DEFAULT_STORYBOOK_DIR,
serveStorybook,
diff --git a/packages/core/src/Tokenizer/__tests__/TokenizerEndLane.a11y.chromium.spec.ts b/packages/core/src/Tokenizer/__tests__/TokenizerEndLane.a11y.chromium.spec.ts
index 6384de041c..47663e80ad 100644
--- a/packages/core/src/Tokenizer/__tests__/TokenizerEndLane.a11y.chromium.spec.ts
+++ b/packages/core/src/Tokenizer/__tests__/TokenizerEndLane.a11y.chromium.spec.ts
@@ -12,7 +12,7 @@
* given width, which only a shipping layout engine can show.
*/
-import {expect, test, type Page} from '@playwright/test';
+import {expect, test, type Page} from '@astryxdesign/a11y-spec/playwright';
import {
DEFAULT_STORYBOOK_DIR,
serveStorybook,
diff --git a/packages/core/src/Toolbar/__tests__/Toolbar.a11y.chromium.spec.ts b/packages/core/src/Toolbar/__tests__/Toolbar.a11y.chromium.spec.ts
index a18134df00..9fb3160c07 100644
--- a/packages/core/src/Toolbar/__tests__/Toolbar.a11y.chromium.spec.ts
+++ b/packages/core/src/Toolbar/__tests__/Toolbar.a11y.chromium.spec.ts
@@ -14,7 +14,7 @@ import {
type CDPSession,
type Locator,
type Page,
-} from '@playwright/test';
+} from '@astryxdesign/a11y-spec/playwright';
import {
TOOLBAR_PATTERN,
blockingResults,
diff --git a/packages/core/src/Tooltip/__tests__/Tooltip.a11y.chromium.spec.ts b/packages/core/src/Tooltip/__tests__/Tooltip.a11y.chromium.spec.ts
index f5e5639bd4..6e9991b9ee 100644
--- a/packages/core/src/Tooltip/__tests__/Tooltip.a11y.chromium.spec.ts
+++ b/packages/core/src/Tooltip/__tests__/Tooltip.a11y.chromium.spec.ts
@@ -14,7 +14,7 @@ import {
type CDPSession,
type Locator,
type Page,
-} from '@playwright/test';
+} from '@astryxdesign/a11y-spec/playwright';
import {
TOOLTIP_PATTERN,
blockingResults,
diff --git a/packages/core/src/Tooltip/__tests__/TooltipFocusReturn.a11y.chromium.spec.ts b/packages/core/src/Tooltip/__tests__/TooltipFocusReturn.a11y.chromium.spec.ts
index 4ed0e841b3..866305349a 100644
--- a/packages/core/src/Tooltip/__tests__/TooltipFocusReturn.a11y.chromium.spec.ts
+++ b/packages/core/src/Tooltip/__tests__/TooltipFocusReturn.a11y.chromium.spec.ts
@@ -27,7 +27,7 @@
* /apps/storybook/stories/TooltipFocusReturnA11y.stories.tsx.
*/
-import {expect, test, type Page} from '@playwright/test';
+import {expect, test, type Page} from '@astryxdesign/a11y-spec/playwright';
import {holdMotionStill} from '@astryxdesign/a11y-spec/chromium';
import {
DEFAULT_STORYBOOK_DIR,
diff --git a/packages/core/src/Tooltip/__tests__/TooltipHoverBridge.a11y.chromium.spec.ts b/packages/core/src/Tooltip/__tests__/TooltipHoverBridge.a11y.chromium.spec.ts
index b9e5f06903..cb5532d500 100644
--- a/packages/core/src/Tooltip/__tests__/TooltipHoverBridge.a11y.chromium.spec.ts
+++ b/packages/core/src/Tooltip/__tests__/TooltipHoverBridge.a11y.chromium.spec.ts
@@ -13,7 +13,7 @@
* only a real engine produces.
*/
-import {expect, test, type Page} from '@playwright/test';
+import {expect, test, type Page} from '@astryxdesign/a11y-spec/playwright';
import {holdMotionStill} from '@astryxdesign/a11y-spec/chromium';
import {
DEFAULT_STORYBOOK_DIR,
diff --git a/packages/core/src/Tooltip/__tests__/TooltipTallContent.a11y.browser.spec.ts b/packages/core/src/Tooltip/__tests__/TooltipTallContent.a11y.browser.spec.ts
index 578a409ff9..a65371c7a9 100644
--- a/packages/core/src/Tooltip/__tests__/TooltipTallContent.a11y.browser.spec.ts
+++ b/packages/core/src/Tooltip/__tests__/TooltipTallContent.a11y.browser.spec.ts
@@ -22,7 +22,7 @@
* (TallContent, TallContentMovingHost, TallContentReplacedTrigger).
*/
-import {expect, test, type Page} from '@playwright/test';
+import {expect, test, type Page} from '@astryxdesign/a11y-spec/playwright';
import {holdMotionStill} from '@astryxdesign/a11y-spec/chromium';
import {
DEFAULT_STORYBOOK_DIR,
diff --git a/packages/core/src/Tooltip/__tests__/TooltipTallContentTracking.a11y.browser.spec.ts b/packages/core/src/Tooltip/__tests__/TooltipTallContentTracking.a11y.browser.spec.ts
index 2251c2586a..af89b9c1c5 100644
--- a/packages/core/src/Tooltip/__tests__/TooltipTallContentTracking.a11y.browser.spec.ts
+++ b/packages/core/src/Tooltip/__tests__/TooltipTallContentTracking.a11y.browser.spec.ts
@@ -21,7 +21,7 @@
* (TallContent, TallContentReplacedTrigger).
*/
-import {expect, test, type Page} from '@playwright/test';
+import {expect, test, type Page} from '@astryxdesign/a11y-spec/playwright';
import {holdMotionStill} from '@astryxdesign/a11y-spec/chromium';
import {
DEFAULT_STORYBOOK_DIR,
diff --git a/packages/core/src/TopNav/__tests__/TopNavMobileLongHeading.a11y.chromium.spec.ts b/packages/core/src/TopNav/__tests__/TopNavMobileLongHeading.a11y.chromium.spec.ts
index 5028235371..612a245eee 100644
--- a/packages/core/src/TopNav/__tests__/TopNavMobileLongHeading.a11y.chromium.spec.ts
+++ b/packages/core/src/TopNav/__tests__/TopNavMobileLongHeading.a11y.chromium.spec.ts
@@ -12,7 +12,7 @@
* the toggle lands is only observable here.
*/
-import {expect, test, type Locator} from '@playwright/test';
+import {expect, test, type Locator} from '@astryxdesign/a11y-spec/playwright';
import {
DEFAULT_STORYBOOK_DIR,
serveStorybook,
diff --git a/packages/core/src/TreeList/__tests__/TreeList.a11y.chromium.spec.ts b/packages/core/src/TreeList/__tests__/TreeList.a11y.chromium.spec.ts
index d4e46ecd53..9eacf37bab 100644
--- a/packages/core/src/TreeList/__tests__/TreeList.a11y.chromium.spec.ts
+++ b/packages/core/src/TreeList/__tests__/TreeList.a11y.chromium.spec.ts
@@ -14,7 +14,7 @@ import {
type CDPSession,
type Locator,
type Page,
-} from '@playwright/test';
+} from '@astryxdesign/a11y-spec/playwright';
import {
TREE_VIEW_PATTERN,
blockingResults,
diff --git a/packages/core/src/TreeList/__tests__/TreeListCollapseFocus.a11y.chromium.spec.ts b/packages/core/src/TreeList/__tests__/TreeListCollapseFocus.a11y.chromium.spec.ts
index 78d2d4e1aa..24d2d3cf95 100644
--- a/packages/core/src/TreeList/__tests__/TreeListCollapseFocus.a11y.chromium.spec.ts
+++ b/packages/core/src/TreeList/__tests__/TreeListCollapseFocus.a11y.chromium.spec.ts
@@ -13,7 +13,7 @@
* SYNC: When modified, update the AR2 Verification row in TreeList.spec.md.
*/
-import {expect, test, type Page} from '@playwright/test';
+import {expect, test, type Page} from '@astryxdesign/a11y-spec/playwright';
import {
DEFAULT_STORYBOOK_DIR,
serveStorybook,
diff --git a/packages/core/src/TreeList/__tests__/TreeListGuideAlignment.interaction.browser.spec.ts b/packages/core/src/TreeList/__tests__/TreeListGuideAlignment.interaction.browser.spec.ts
index c5cb216a11..b71b2dd802 100644
--- a/packages/core/src/TreeList/__tests__/TreeListGuideAlignment.interaction.browser.spec.ts
+++ b/packages/core/src/TreeList/__tests__/TreeListGuideAlignment.interaction.browser.spec.ts
@@ -8,7 +8,7 @@
* @position Layout evidence for TreeList chevron and guide geometry
*/
-import {expect, test, type Page} from '@playwright/test';
+import {expect, test, type Page} from '@astryxdesign/a11y-spec/playwright';
import {
DEFAULT_STORYBOOK_DIR,
serveStorybook,
diff --git a/packages/core/src/TreeList/__tests__/TreeListRowNames.a11y.chromium.spec.ts b/packages/core/src/TreeList/__tests__/TreeListRowNames.a11y.chromium.spec.ts
index 95c050b112..2b51f17e8d 100644
--- a/packages/core/src/TreeList/__tests__/TreeListRowNames.a11y.chromium.spec.ts
+++ b/packages/core/src/TreeList/__tests__/TreeListRowNames.a11y.chromium.spec.ts
@@ -8,7 +8,7 @@
* @position Chromium evidence for component:TreeList AR1 (component:TreeList's row-naming implementation gap, closed)
*/
-import {expect, test, type Page} from '@playwright/test';
+import {expect, test, type Page} from '@astryxdesign/a11y-spec/playwright';
import {
createChromiumHarness,
holdMotionStill,
diff --git a/packages/core/src/Typeahead/BaseTypeahead.emptyState.a11y.chromium.spec.ts b/packages/core/src/Typeahead/BaseTypeahead.emptyState.a11y.chromium.spec.ts
index 0127a88316..b7d6db9010 100644
--- a/packages/core/src/Typeahead/BaseTypeahead.emptyState.a11y.chromium.spec.ts
+++ b/packages/core/src/Typeahead/BaseTypeahead.emptyState.a11y.chromium.spec.ts
@@ -8,7 +8,7 @@
* @position Browser regression for AST-092 FR5 and AST-056 AR1 (#8903)
*/
-import {expect, test} from '@playwright/test';
+import {expect, test} from '@astryxdesign/a11y-spec/playwright';
import {
serveStorybook,
DEFAULT_STORYBOOK_DIR,
diff --git a/packages/core/src/Typeahead/Typeahead.disabled.a11y.chromium.spec.ts b/packages/core/src/Typeahead/Typeahead.disabled.a11y.chromium.spec.ts
index fa6cd0cb05..d432f31f59 100644
--- a/packages/core/src/Typeahead/Typeahead.disabled.a11y.chromium.spec.ts
+++ b/packages/core/src/Typeahead/Typeahead.disabled.a11y.chromium.spec.ts
@@ -9,7 +9,7 @@
* text-entry search fields
*/
-import {expect, test} from '@playwright/test';
+import {expect, test} from '@astryxdesign/a11y-spec/playwright';
import {
serveStorybook,
DEFAULT_STORYBOOK_DIR,
diff --git a/packages/core/src/Typeahead/__tests__/TypeaheadInputPress.a11y.chromium.spec.ts b/packages/core/src/Typeahead/__tests__/TypeaheadInputPress.a11y.chromium.spec.ts
index 0c38102f83..8fd3ab0ed0 100644
--- a/packages/core/src/Typeahead/__tests__/TypeaheadInputPress.a11y.chromium.spec.ts
+++ b/packages/core/src/Typeahead/__tests__/TypeaheadInputPress.a11y.chromium.spec.ts
@@ -11,7 +11,7 @@
* changes. jsdom has no light dismiss, so only a browser shows the defect.
*/
-import {expect, test, type Page} from '@playwright/test';
+import {expect, test, type Page} from '@astryxdesign/a11y-spec/playwright';
import {
DEFAULT_STORYBOOK_DIR,
serveStorybook,
diff --git a/packages/core/src/__tests__/CardPress.a11y.chromium.spec.ts b/packages/core/src/__tests__/CardPress.a11y.chromium.spec.ts
index 34e60c41ea..a2a063cee8 100644
--- a/packages/core/src/__tests__/CardPress.a11y.chromium.spec.ts
+++ b/packages/core/src/__tests__/CardPress.a11y.chromium.spec.ts
@@ -25,7 +25,7 @@ import {
type Browser,
type CDPSession,
type Page,
-} from '@playwright/test';
+} from '@astryxdesign/a11y-spec/playwright';
// @ts-expect-error -- pngjs ships no declarations; runtime support is pinned.
import {PNG} from 'pngjs';
import {
diff --git a/packages/core/src/__tests__/DisabledTriggerFocus.a11y.chromium.spec.ts b/packages/core/src/__tests__/DisabledTriggerFocus.a11y.chromium.spec.ts
index 2cb1d81426..fe2aad2da2 100644
--- a/packages/core/src/__tests__/DisabledTriggerFocus.a11y.chromium.spec.ts
+++ b/packages/core/src/__tests__/DisabledTriggerFocus.a11y.chromium.spec.ts
@@ -11,7 +11,7 @@
* element that becomes disabled, so it cannot show the loss.
*/
-import {expect, test} from '@playwright/test';
+import {expect, test} from '@astryxdesign/a11y-spec/playwright';
import {
DEFAULT_STORYBOOK_DIR,
serveStorybook,
diff --git a/packages/core/src/__tests__/ModalBackdrop.a11y.browser.spec.ts b/packages/core/src/__tests__/ModalBackdrop.a11y.browser.spec.ts
index 34c36d2817..c87af13376 100644
--- a/packages/core/src/__tests__/ModalBackdrop.a11y.browser.spec.ts
+++ b/packages/core/src/__tests__/ModalBackdrop.a11y.browser.spec.ts
@@ -18,7 +18,7 @@
import * as fs from 'node:fs';
import * as path from 'node:path';
-import {expect, test, type Page} from '@playwright/test';
+import {expect, test, type Page} from '@astryxdesign/a11y-spec/playwright';
import {
DEFAULT_STORYBOOK_DIR,
serveStorybook,
diff --git a/packages/core/src/__tests__/PressModality.a11y.chromium.spec.ts b/packages/core/src/__tests__/PressModality.a11y.chromium.spec.ts
index 17cf2a6076..3ed3f3fbf5 100644
--- a/packages/core/src/__tests__/PressModality.a11y.chromium.spec.ts
+++ b/packages/core/src/__tests__/PressModality.a11y.chromium.spec.ts
@@ -20,7 +20,12 @@
* is the only thing that can paint a mouse or keyboard press.
*/
-import {expect, test, type Browser, type Page} from '@playwright/test';
+import {
+ expect,
+ test,
+ type Browser,
+ type Page,
+} from '@astryxdesign/a11y-spec/playwright';
// @ts-expect-error -- pngjs ships no declarations; runtime support is pinned.
import {PNG} from 'pngjs';
import {
diff --git a/packages/core/src/__tests__/PressedState.a11y.chromium.spec.ts b/packages/core/src/__tests__/PressedState.a11y.chromium.spec.ts
index dd9da6d10f..9d723bbac6 100644
--- a/packages/core/src/__tests__/PressedState.a11y.chromium.spec.ts
+++ b/packages/core/src/__tests__/PressedState.a11y.chromium.spec.ts
@@ -13,7 +13,12 @@
import {createHash} from 'node:crypto';
import * as fs from 'node:fs';
import * as path from 'node:path';
-import {expect, test, type Locator, type Page} from '@playwright/test';
+import {
+ expect,
+ test,
+ type Locator,
+ type Page,
+} from '@astryxdesign/a11y-spec/playwright';
import pixelmatch from 'pixelmatch';
// @ts-expect-error -- pngjs ships no declarations; runtime support is pinned.
import {PNG} from 'pngjs';
diff --git a/packages/core/src/animator/__tests__/createAnimator.interaction.browser.spec.ts b/packages/core/src/animator/__tests__/createAnimator.interaction.browser.spec.ts
index 45774a8a68..47a48d60d3 100644
--- a/packages/core/src/animator/__tests__/createAnimator.interaction.browser.spec.ts
+++ b/packages/core/src/animator/__tests__/createAnimator.interaction.browser.spec.ts
@@ -16,7 +16,7 @@
*/
import {fileURLToPath} from 'node:url';
-import {expect, test, type Page} from '@playwright/test';
+import {expect, test, type Page} from '@astryxdesign/a11y-spec/playwright';
import {build} from 'esbuild';
import type * as Bundle from './animatorBundle';
import type {Animator} from '../createAnimator';
diff --git a/packages/core/src/gestures/__tests__/browser/gestures.interaction.browser.spec.ts b/packages/core/src/gestures/__tests__/browser/gestures.interaction.browser.spec.ts
index 8f4f1901b3..ee7e73e5fb 100644
--- a/packages/core/src/gestures/__tests__/browser/gestures.interaction.browser.spec.ts
+++ b/packages/core/src/gestures/__tests__/browser/gestures.interaction.browser.spec.ts
@@ -36,7 +36,7 @@ import {webInputDriver, WHEEL_SKIP} from '@astryxdesign/interaction-harness';
*/
const TRACKPAD_SKIP =
"Chromium's driver sends each wheel as a mouse wheel's notch (wheelDeltaY -120 whatever its delta); WebKit's driver sends a trackpad's precise deltas";
-import {expect, test, type Page} from '@playwright/test';
+import {expect, test, type Page} from '@astryxdesign/a11y-spec/playwright';
interface Entry {
name: string;
diff --git a/packages/core/src/gestures/__tests__/browser/presentedHitTesting.interaction.browser.spec.ts b/packages/core/src/gestures/__tests__/browser/presentedHitTesting.interaction.browser.spec.ts
index 5ce18f740c..6c6619b1b3 100644
--- a/packages/core/src/gestures/__tests__/browser/presentedHitTesting.interaction.browser.spec.ts
+++ b/packages/core/src/gestures/__tests__/browser/presentedHitTesting.interaction.browser.spec.ts
@@ -19,7 +19,7 @@
import path from 'node:path';
import {fileURLToPath} from 'node:url';
import {build} from 'esbuild';
-import {expect, test, type Page} from '@playwright/test';
+import {expect, test, type Page} from '@astryxdesign/a11y-spec/playwright';
let bundle = '';
diff --git a/packages/core/src/hooks/__tests__/MenuPressShadowRoot.a11y.chromium.spec.ts b/packages/core/src/hooks/__tests__/MenuPressShadowRoot.a11y.chromium.spec.ts
index cb4a5ea3e0..f1ba9e34cb 100644
--- a/packages/core/src/hooks/__tests__/MenuPressShadowRoot.a11y.chromium.spec.ts
+++ b/packages/core/src/hooks/__tests__/MenuPressShadowRoot.a11y.chromium.spec.ts
@@ -13,7 +13,7 @@
* point inside a shadow root to the shadow host at the document level.
*/
-import {expect, test, type Page} from '@playwright/test';
+import {expect, test, type Page} from '@astryxdesign/a11y-spec/playwright';
import {
DEFAULT_STORYBOOK_DIR,
serveStorybook,
diff --git a/packages/core/src/hooks/__tests__/usePager.interaction.browser.spec.ts b/packages/core/src/hooks/__tests__/usePager.interaction.browser.spec.ts
index 9d507c6385..91ea42199c 100644
--- a/packages/core/src/hooks/__tests__/usePager.interaction.browser.spec.ts
+++ b/packages/core/src/hooks/__tests__/usePager.interaction.browser.spec.ts
@@ -40,7 +40,12 @@ import {
type TouchDriver,
type TouchScript,
} from '@astryxdesign/interaction-harness';
-import {expect, test, type Locator, type Page} from '@playwright/test';
+import {
+ expect,
+ test,
+ type Locator,
+ type Page,
+} from '@astryxdesign/a11y-spec/playwright';
import {build} from 'esbuild';
import type * as PagerBundle from './pagerBundle';
diff --git a/packages/core/src/motion/__tests__/animatedLayout.interaction.browser.spec.ts b/packages/core/src/motion/__tests__/animatedLayout.interaction.browser.spec.ts
index 7e76d8d384..edcd44a4e2 100644
--- a/packages/core/src/motion/__tests__/animatedLayout.interaction.browser.spec.ts
+++ b/packages/core/src/motion/__tests__/animatedLayout.interaction.browser.spec.ts
@@ -17,7 +17,7 @@
*/
import {fileURLToPath} from 'node:url';
-import {expect, test, type Page} from '@playwright/test';
+import {expect, test, type Page} from '@astryxdesign/a11y-spec/playwright';
import {build} from 'esbuild';
import type * as Bundle from './animatedLayoutBundle';
diff --git a/packages/core/src/motion/__tests__/animatedLayoutAdopters.interaction.browser.spec.ts b/packages/core/src/motion/__tests__/animatedLayoutAdopters.interaction.browser.spec.ts
index 9a39a02668..6c7c19e794 100644
--- a/packages/core/src/motion/__tests__/animatedLayoutAdopters.interaction.browser.spec.ts
+++ b/packages/core/src/motion/__tests__/animatedLayoutAdopters.interaction.browser.spec.ts
@@ -18,7 +18,7 @@
* and TreeList.spec.md.
*/
-import {expect, test, type Page} from '@playwright/test';
+import {expect, test, type Page} from '@astryxdesign/a11y-spec/playwright';
import {
DEFAULT_STORYBOOK_DIR,
serveStorybook,
diff --git a/packages/core/src/motion/__tests__/animator.interaction.browser.spec.ts b/packages/core/src/motion/__tests__/animator.interaction.browser.spec.ts
index d1b46d3124..33aaf74b9d 100644
--- a/packages/core/src/motion/__tests__/animator.interaction.browser.spec.ts
+++ b/packages/core/src/motion/__tests__/animator.interaction.browser.spec.ts
@@ -34,7 +34,7 @@ import {
traceRendering,
trackMarker,
} from '@astryxdesign/interaction-harness';
-import {expect, test, type Page} from '@playwright/test';
+import {expect, test, type Page} from '@astryxdesign/a11y-spec/playwright';
import {build} from 'esbuild';
import type {Animator, MotionHandle} from '../animator';
import type * as MotionBundle from './motionBundle';
diff --git a/packages/core/src/reset.a11y.chromium.spec.ts b/packages/core/src/reset.a11y.chromium.spec.ts
index 8b16c993f0..05e1e7e754 100644
--- a/packages/core/src/reset.a11y.chromium.spec.ts
+++ b/packages/core/src/reset.a11y.chromium.spec.ts
@@ -14,7 +14,7 @@
import * as fs from 'node:fs';
import {fileURLToPath} from 'node:url';
-import {expect, test, type Page} from '@playwright/test';
+import {expect, test, type Page} from '@astryxdesign/a11y-spec/playwright';
// @ts-expect-error -- pngjs ships no declarations; runtime support is pinned.
import {PNG} from 'pngjs';
diff --git a/packages/core/src/reset.until-found.a11y.browser.spec.ts b/packages/core/src/reset.until-found.a11y.browser.spec.ts
index 67de2a2270..a9f1136955 100644
--- a/packages/core/src/reset.until-found.a11y.browser.spec.ts
+++ b/packages/core/src/reset.until-found.a11y.browser.spec.ts
@@ -13,7 +13,7 @@
import * as fs from 'node:fs';
import {fileURLToPath} from 'node:url';
-import {expect, test} from '@playwright/test';
+import {expect, test} from '@astryxdesign/a11y-spec/playwright';
const RESET_CSS = fs.readFileSync(
fileURLToPath(new URL('./reset.css', import.meta.url)),
diff --git a/packages/core/src/theme/__tests__/SpacingRootFontSize.a11y.chromium.spec.ts b/packages/core/src/theme/__tests__/SpacingRootFontSize.a11y.chromium.spec.ts
index 25683611c3..291489264e 100644
--- a/packages/core/src/theme/__tests__/SpacingRootFontSize.a11y.chromium.spec.ts
+++ b/packages/core/src/theme/__tests__/SpacingRootFontSize.a11y.chromium.spec.ts
@@ -11,7 +11,7 @@
* exactly as they were at the default 16px root.
*/
-import {expect, test, type Page} from '@playwright/test';
+import {expect, test, type Page} from '@astryxdesign/a11y-spec/playwright';
import {
DEFAULT_STORYBOOK_DIR,
serveStorybook,
diff --git a/packages/lab/src/Chat/__tests__/ChatTypingIndicator.a11y.chromium.spec.ts b/packages/lab/src/Chat/__tests__/ChatTypingIndicator.a11y.chromium.spec.ts
index 688e977565..a3dca31252 100644
--- a/packages/lab/src/Chat/__tests__/ChatTypingIndicator.a11y.chromium.spec.ts
+++ b/packages/lab/src/Chat/__tests__/ChatTypingIndicator.a11y.chromium.spec.ts
@@ -9,7 +9,7 @@ import {
type CDPSession,
type Locator,
type Page,
-} from '@playwright/test';
+} from '@astryxdesign/a11y-spec/playwright';
import {
STATUS_MESSAGE_PATTERN,
blockingResults,
diff --git a/packages/lab/src/CircularProgress/__tests__/CircularProgress.a11y.chromium.spec.ts b/packages/lab/src/CircularProgress/__tests__/CircularProgress.a11y.chromium.spec.ts
index 745cf5d359..bfe2fd99b8 100644
--- a/packages/lab/src/CircularProgress/__tests__/CircularProgress.a11y.chromium.spec.ts
+++ b/packages/lab/src/CircularProgress/__tests__/CircularProgress.a11y.chromium.spec.ts
@@ -14,7 +14,7 @@ import {
type CDPSession,
type Locator,
type Page,
-} from '@playwright/test';
+} from '@astryxdesign/a11y-spec/playwright';
import {
PROGRESSBAR_PATTERN,
blockingResults,
diff --git a/packages/lab/src/CircularProgress/__tests__/CircularProgressMotion.a11y.chromium.spec.ts b/packages/lab/src/CircularProgress/__tests__/CircularProgressMotion.a11y.chromium.spec.ts
index 1a0b73442f..1b127ccee3 100644
--- a/packages/lab/src/CircularProgress/__tests__/CircularProgressMotion.a11y.chromium.spec.ts
+++ b/packages/lab/src/CircularProgress/__tests__/CircularProgressMotion.a11y.chromium.spec.ts
@@ -19,7 +19,7 @@
import fs from 'node:fs';
import path from 'node:path';
-import {expect, test, type Page} from '@playwright/test';
+import {expect, test, type Page} from '@astryxdesign/a11y-spec/playwright';
import {
DEFAULT_STORYBOOK_DIR,
serveStorybook,
diff --git a/packages/lab/src/Schedule/__tests__/ScheduleEventPopover.a11y.chromium.spec.ts b/packages/lab/src/Schedule/__tests__/ScheduleEventPopover.a11y.chromium.spec.ts
index 56bc33c37d..a0d139fc72 100644
--- a/packages/lab/src/Schedule/__tests__/ScheduleEventPopover.a11y.chromium.spec.ts
+++ b/packages/lab/src/Schedule/__tests__/ScheduleEventPopover.a11y.chromium.spec.ts
@@ -15,7 +15,7 @@
* focus ring, or produce a touch tap.
*/
-import {expect, test, type Page} from '@playwright/test';
+import {expect, test, type Page} from '@astryxdesign/a11y-spec/playwright';
import pixelmatch from 'pixelmatch';
// @ts-expect-error -- pngjs ships no declarations; runtime support is pinned.
import {PNG} from 'pngjs';
diff --git a/packages/lab/src/Schedule/__tests__/ScheduleMonthChip.a11y.chromium.spec.ts b/packages/lab/src/Schedule/__tests__/ScheduleMonthChip.a11y.chromium.spec.ts
index 9a0ebf8341..392d183791 100644
--- a/packages/lab/src/Schedule/__tests__/ScheduleMonthChip.a11y.chromium.spec.ts
+++ b/packages/lab/src/Schedule/__tests__/ScheduleMonthChip.a11y.chromium.spec.ts
@@ -11,7 +11,7 @@
* layout, so it cannot tell whether a time fits beside a title.
*/
-import {expect, test, type Page} from '@playwright/test';
+import {expect, test, type Page} from '@astryxdesign/a11y-spec/playwright';
import {
finishEvidence,
openStory,
diff --git a/packages/lab/src/Schedule/__tests__/ScheduleMonthEventPopover.a11y.chromium.spec.ts b/packages/lab/src/Schedule/__tests__/ScheduleMonthEventPopover.a11y.chromium.spec.ts
index 12abb4829f..5c1f168973 100644
--- a/packages/lab/src/Schedule/__tests__/ScheduleMonthEventPopover.a11y.chromium.spec.ts
+++ b/packages/lab/src/Schedule/__tests__/ScheduleMonthEventPopover.a11y.chromium.spec.ts
@@ -13,7 +13,7 @@
* cannot show a native popover, return focus through it, or lay out chips.
*/
-import {expect, test, type Page} from '@playwright/test';
+import {expect, test, type Page} from '@astryxdesign/a11y-spec/playwright';
import {
finishEvidence,
openStory,
diff --git a/packages/lab/src/Schedule/__tests__/ScheduleMonthOverflow.a11y.chromium.spec.ts b/packages/lab/src/Schedule/__tests__/ScheduleMonthOverflow.a11y.chromium.spec.ts
index ce8194647c..5b49857b09 100644
--- a/packages/lab/src/Schedule/__tests__/ScheduleMonthOverflow.a11y.chromium.spec.ts
+++ b/packages/lab/src/Schedule/__tests__/ScheduleMonthOverflow.a11y.chromium.spec.ts
@@ -16,7 +16,7 @@
* through it, or paint a focus ring.
*/
-import {expect, test, type Page} from '@playwright/test';
+import {expect, test, type Page} from '@astryxdesign/a11y-spec/playwright';
import pixelmatch from 'pixelmatch';
// @ts-expect-error -- pngjs ships no declarations; runtime support is pinned.
import {PNG} from 'pngjs';
diff --git a/packages/lab/src/Schedule/__tests__/ScheduleTimeDirection.a11y.chromium.spec.ts b/packages/lab/src/Schedule/__tests__/ScheduleTimeDirection.a11y.chromium.spec.ts
index 39b99ec699..d7f933a4c0 100644
--- a/packages/lab/src/Schedule/__tests__/ScheduleTimeDirection.a11y.chromium.spec.ts
+++ b/packages/lab/src/Schedule/__tests__/ScheduleTimeDirection.a11y.chromium.spec.ts
@@ -12,7 +12,7 @@
* algorithm, so only a browser shows the painted order.
*/
-import {expect, test, type Page} from '@playwright/test';
+import {expect, test, type Page} from '@astryxdesign/a11y-spec/playwright';
import {
finishEvidence,
openStory,
diff --git a/packages/lab/src/Schedule/__tests__/ScheduleTimeGridGeometry.a11y.chromium.spec.ts b/packages/lab/src/Schedule/__tests__/ScheduleTimeGridGeometry.a11y.chromium.spec.ts
index 2a68c7b387..0553c6dd8f 100644
--- a/packages/lab/src/Schedule/__tests__/ScheduleTimeGridGeometry.a11y.chromium.spec.ts
+++ b/packages/lab/src/Schedule/__tests__/ScheduleTimeGridGeometry.a11y.chromium.spec.ts
@@ -11,7 +11,7 @@
* ownership are checkable only here.
*/
-import {expect, test} from '@playwright/test';
+import {expect, test} from '@astryxdesign/a11y-spec/playwright';
import pixelmatch from 'pixelmatch';
// @ts-expect-error -- pngjs ships no declarations; runtime support is pinned.
import {PNG} from 'pngjs';
diff --git a/packages/lab/src/Schedule/__tests__/ScheduleTimeGridInitialPosition.a11y.chromium.spec.ts b/packages/lab/src/Schedule/__tests__/ScheduleTimeGridInitialPosition.a11y.chromium.spec.ts
index c5c77dd996..eee7122f4e 100644
--- a/packages/lab/src/Schedule/__tests__/ScheduleTimeGridInitialPosition.a11y.chromium.spec.ts
+++ b/packages/lab/src/Schedule/__tests__/ScheduleTimeGridInitialPosition.a11y.chromium.spec.ts
@@ -12,7 +12,7 @@
* the viewport really lands on.
*/
-import {expect, test, type Page} from '@playwright/test';
+import {expect, test, type Page} from '@astryxdesign/a11y-spec/playwright';
import {
DAY,
finishEvidence,
diff --git a/packages/lab/src/Schedule/__tests__/ScheduleTimeGridLongSpan.a11y.chromium.spec.ts b/packages/lab/src/Schedule/__tests__/ScheduleTimeGridLongSpan.a11y.chromium.spec.ts
index cc3a948326..3aa9ef5389 100644
--- a/packages/lab/src/Schedule/__tests__/ScheduleTimeGridLongSpan.a11y.chromium.spec.ts
+++ b/packages/lab/src/Schedule/__tests__/ScheduleTimeGridLongSpan.a11y.chromium.spec.ts
@@ -11,7 +11,7 @@
* no layout, so it cannot measure where a span paints or how wide a block is.
*/
-import {expect, test, type Page} from '@playwright/test';
+import {expect, test, type Page} from '@astryxdesign/a11y-spec/playwright';
import {
finishEvidence,
NARROW,
diff --git a/packages/lab/src/Schedule/__tests__/ScheduleTimeGridMidnight.a11y.chromium.spec.ts b/packages/lab/src/Schedule/__tests__/ScheduleTimeGridMidnight.a11y.chromium.spec.ts
index a6bf434b15..458a7ff0d2 100644
--- a/packages/lab/src/Schedule/__tests__/ScheduleTimeGridMidnight.a11y.chromium.spec.ts
+++ b/packages/lab/src/Schedule/__tests__/ScheduleTimeGridMidnight.a11y.chromium.spec.ts
@@ -9,7 +9,7 @@
* dropped) at the midnight boundary
*/
-import {expect, test} from '@playwright/test';
+import {expect, test} from '@astryxdesign/a11y-spec/playwright';
import {
finishEvidence,
openStory,
diff --git a/packages/lab/src/Schedule/__tests__/ScheduleTimeGridOverlap.a11y.chromium.spec.ts b/packages/lab/src/Schedule/__tests__/ScheduleTimeGridOverlap.a11y.chromium.spec.ts
index 376219a74a..39b8bde80d 100644
--- a/packages/lab/src/Schedule/__tests__/ScheduleTimeGridOverlap.a11y.chromium.spec.ts
+++ b/packages/lab/src/Schedule/__tests__/ScheduleTimeGridOverlap.a11y.chromium.spec.ts
@@ -10,7 +10,7 @@
* is a question only a layout engine can answer.
*/
-import {expect, test} from '@playwright/test';
+import {expect, test} from '@astryxdesign/a11y-spec/playwright';
import {
blockOverlap,
finishEvidence,
diff --git a/packages/lab/src/Schedule/__tests__/ScheduleTimeGridSkippedMidnight.a11y.chromium.spec.ts b/packages/lab/src/Schedule/__tests__/ScheduleTimeGridSkippedMidnight.a11y.chromium.spec.ts
index c1d1e06f67..2f4ac969a0 100644
--- a/packages/lab/src/Schedule/__tests__/ScheduleTimeGridSkippedMidnight.a11y.chromium.spec.ts
+++ b/packages/lab/src/Schedule/__tests__/ScheduleTimeGridSkippedMidnight.a11y.chromium.spec.ts
@@ -10,7 +10,7 @@
* dropped) across a skipped midnight
*/
-import {expect, test, type Page} from '@playwright/test';
+import {expect, test, type Page} from '@astryxdesign/a11y-spec/playwright';
import {
finishEvidence,
record,
diff --git a/packages/lab/src/SelectableCardGroup/__tests__/SelectableCardGroupRadio.a11y.chromium.spec.ts b/packages/lab/src/SelectableCardGroup/__tests__/SelectableCardGroupRadio.a11y.chromium.spec.ts
index 390b82ad40..bcace6fb68 100644
--- a/packages/lab/src/SelectableCardGroup/__tests__/SelectableCardGroupRadio.a11y.chromium.spec.ts
+++ b/packages/lab/src/SelectableCardGroup/__tests__/SelectableCardGroupRadio.a11y.chromium.spec.ts
@@ -10,7 +10,7 @@
* jsdom has no native radio-group keyboard, so only a real engine shows it.
*/
-import {expect, test, type Page} from '@playwright/test';
+import {expect, test, type Page} from '@astryxdesign/a11y-spec/playwright';
import {
DEFAULT_STORYBOOK_DIR,
serveStorybook,
diff --git a/packages/lab/src/__tests__/ReorderGripPinchZoom.a11y.chromium.spec.ts b/packages/lab/src/__tests__/ReorderGripPinchZoom.a11y.chromium.spec.ts
index 02e5ae63aa..79ab4ff650 100644
--- a/packages/lab/src/__tests__/ReorderGripPinchZoom.a11y.chromium.spec.ts
+++ b/packages/lab/src/__tests__/ReorderGripPinchZoom.a11y.chromium.spec.ts
@@ -13,7 +13,12 @@
* (packages/lab/src/reorderStyles.ts)
*/
-import {expect, test, type CDPSession, type Page} from '@playwright/test';
+import {
+ expect,
+ test,
+ type CDPSession,
+ type Page,
+} from '@astryxdesign/a11y-spec/playwright';
import {
DEFAULT_STORYBOOK_DIR,
serveStorybook,
diff --git a/packages/richtext/src/__tests__/MarkdownParitySandbox.a11y.chromium.spec.ts b/packages/richtext/src/__tests__/MarkdownParitySandbox.a11y.chromium.spec.ts
index 1171967aa1..2da4d9bcff 100644
--- a/packages/richtext/src/__tests__/MarkdownParitySandbox.a11y.chromium.spec.ts
+++ b/packages/richtext/src/__tests__/MarkdownParitySandbox.a11y.chromium.spec.ts
@@ -24,7 +24,7 @@ import * as crypto from 'node:crypto';
import * as fs from 'node:fs';
import * as path from 'node:path';
import AxeBuilder from '@axe-core/playwright';
-import {expect, test, type Page} from '@playwright/test';
+import {expect, test, type Page} from '@astryxdesign/a11y-spec/playwright';
import {holdMotionStill} from '@astryxdesign/a11y-spec/chromium';
import {
DEFAULT_STORYBOOK_DIR,
diff --git a/packages/richtext/src/__tests__/MarkdownPlugins.a11y.chromium.spec.ts b/packages/richtext/src/__tests__/MarkdownPlugins.a11y.chromium.spec.ts
index b0635e596c..495dd07226 100644
--- a/packages/richtext/src/__tests__/MarkdownPlugins.a11y.chromium.spec.ts
+++ b/packages/richtext/src/__tests__/MarkdownPlugins.a11y.chromium.spec.ts
@@ -15,7 +15,7 @@
*/
import AxeBuilder from '@axe-core/playwright';
-import {expect, test, type Page} from '@playwright/test';
+import {expect, test, type Page} from '@astryxdesign/a11y-spec/playwright';
import {
DEFAULT_STORYBOOK_DIR,
serveStorybook,
diff --git a/packages/richtext/src/__tests__/MarkdownPluginsImportExport.a11y.chromium.spec.ts b/packages/richtext/src/__tests__/MarkdownPluginsImportExport.a11y.chromium.spec.ts
index bd9c462a3d..f9c2cefa19 100644
--- a/packages/richtext/src/__tests__/MarkdownPluginsImportExport.a11y.chromium.spec.ts
+++ b/packages/richtext/src/__tests__/MarkdownPluginsImportExport.a11y.chromium.spec.ts
@@ -16,7 +16,7 @@
*/
import AxeBuilder from '@axe-core/playwright';
-import {expect, test, type Page} from '@playwright/test';
+import {expect, test, type Page} from '@astryxdesign/a11y-spec/playwright';
import {
DEFAULT_STORYBOOK_DIR,
serveStorybook,
diff --git a/packages/richtext/src/__tests__/Playground.a11y.chromium.spec.ts b/packages/richtext/src/__tests__/Playground.a11y.chromium.spec.ts
index f99482ee5b..2071c4a17f 100644
--- a/packages/richtext/src/__tests__/Playground.a11y.chromium.spec.ts
+++ b/packages/richtext/src/__tests__/Playground.a11y.chromium.spec.ts
@@ -20,7 +20,7 @@
*/
import AxeBuilder from '@axe-core/playwright';
-import {expect, test, type Page} from '@playwright/test';
+import {expect, test, type Page} from '@astryxdesign/a11y-spec/playwright';
import {
DEFAULT_STORYBOOK_DIR,
serveStorybook,
diff --git a/packages/richtext/src/__tests__/RichTextCodeLanguages.a11y.chromium.spec.ts b/packages/richtext/src/__tests__/RichTextCodeLanguages.a11y.chromium.spec.ts
index a5a3ba98a5..063ff7f195 100644
--- a/packages/richtext/src/__tests__/RichTextCodeLanguages.a11y.chromium.spec.ts
+++ b/packages/richtext/src/__tests__/RichTextCodeLanguages.a11y.chromium.spec.ts
@@ -9,7 +9,7 @@
* @position spec:AST-061 read/edit parity, CodeBlock FR13 evidence
*/
-import {expect, test, type Page} from '@playwright/test';
+import {expect, test, type Page} from '@astryxdesign/a11y-spec/playwright';
import {
DEFAULT_STORYBOOK_DIR,
serveStorybook,
diff --git a/packages/richtext/src/__tests__/RichTextEditorToolbar.a11y.chromium.spec.ts b/packages/richtext/src/__tests__/RichTextEditorToolbar.a11y.chromium.spec.ts
index 66d78371f8..7b4300e049 100644
--- a/packages/richtext/src/__tests__/RichTextEditorToolbar.a11y.chromium.spec.ts
+++ b/packages/richtext/src/__tests__/RichTextEditorToolbar.a11y.chromium.spec.ts
@@ -15,7 +15,7 @@
*/
import AxeBuilder from '@axe-core/playwright';
-import {expect, test} from '@playwright/test';
+import {expect, test} from '@astryxdesign/a11y-spec/playwright';
import {
DEFAULT_STORYBOOK_DIR,
serveStorybook,
diff --git a/packages/richtext/src/__tests__/RichTextView.a11y.chromium.spec.ts b/packages/richtext/src/__tests__/RichTextView.a11y.chromium.spec.ts
index b6c0eaf286..4c8288eacb 100644
--- a/packages/richtext/src/__tests__/RichTextView.a11y.chromium.spec.ts
+++ b/packages/richtext/src/__tests__/RichTextView.a11y.chromium.spec.ts
@@ -14,7 +14,7 @@
* pnpm exec playwright test packages/richtext --project chromium
*/
-import {expect, test} from '@playwright/test';
+import {expect, test} from '@astryxdesign/a11y-spec/playwright';
import {
DEFAULT_STORYBOOK_DIR,
serveStorybook,
diff --git a/packages/richtext/src/__tests__/TableCellSelection.a11y.chromium.spec.ts b/packages/richtext/src/__tests__/TableCellSelection.a11y.chromium.spec.ts
index aae14f9d19..b12114ad97 100644
--- a/packages/richtext/src/__tests__/TableCellSelection.a11y.chromium.spec.ts
+++ b/packages/richtext/src/__tests__/TableCellSelection.a11y.chromium.spec.ts
@@ -29,7 +29,7 @@
* pnpm exec playwright test packages/richtext --project chromium
*/
-import {expect, test, type Page} from '@playwright/test';
+import {expect, test, type Page} from '@astryxdesign/a11y-spec/playwright';
import {
DEFAULT_STORYBOOK_DIR,
serveStorybook,
diff --git a/playwright.config.ts b/playwright.config.ts
index ed73cbf3bd..719240b754 100644
--- a/playwright.config.ts
+++ b/playwright.config.ts
@@ -25,6 +25,11 @@
* Cross-browser specs use `.a11y.browser.spec.ts`; Chromium-only contracts keep
* `.a11y.chromium.spec.ts`. The WebKit project runs only the former.
*
+ * Specs import `test` from `@astryxdesign/a11y-spec/playwright`, the base test
+ * this config and playwright.interaction.config.ts share. Its browser contexts
+ * answer remote images locally and block other remote requests, so a slow
+ * remote host cannot stall a spec. A lint rule enforces the import.
+ *
* Pull requests run a scoped selection of the same files with
* `pnpm test:a11y-contract:pr`; each spec's `@pr-a11y` header lines decide when
* (`.github/scripts/a11y-pr-contracts.mjs`). A new spec needs no workflow edit.
diff --git a/playwright.interaction.config.ts b/playwright.interaction.config.ts
index 77f3d8b05f..370c157f78 100644
--- a/playwright.interaction.config.ts
+++ b/playwright.interaction.config.ts
@@ -17,6 +17,11 @@
* pnpm test:interaction --project chromium
* pnpm test:interaction harness.interaction.browser.spec.ts
*
+ * Specs import `test` from `@astryxdesign/a11y-spec/playwright`, the base test
+ * shared with playwright.config.ts: no context reaches a remote host. The
+ * gesture fixtures and Storybook servers listen on the loopback host, which
+ * passes.
+ *
* A spec that needs Chromium-only evidence (CDP tracing, scripted touch
* timestamps) skips itself in WebKit with the reason; see the harness README.
* Where WebKit cannot launch on the host (missing system libraries on some