mirror of
https://github.com/jjbrunton/Sauci.git
synced 2026-11-02 02:19:43 +00:00
Move swipe screen logic into hooks/services and extract state-specific UI components to keep files small while preserving existing behavior. Reference: US-002
15 lines
562 B
TypeScript
15 lines
562 B
TypeScript
/**
|
|
* ARIA Snapshot module for dev-browser.
|
|
*
|
|
* Provides Playwright-compatible ARIA snapshots with cross-connection ref persistence.
|
|
* Refs are stored on window.__devBrowserRefs and survive across Playwright reconnections.
|
|
*
|
|
* Usage:
|
|
* import { getSnapshotScript } from './snapshot';
|
|
* const script = getSnapshotScript();
|
|
* await page.evaluate(script);
|
|
* // Now window.__devBrowser_getAISnapshot() and window.__devBrowser_selectSnapshotRef(ref) are available
|
|
*/
|
|
|
|
export { getSnapshotScript, clearSnapshotScriptCache } from "./browser-script";
|