import { a11ySnapshot as snap } from '@web/test-runner-commands';
export async function a11ySnapshot(payload) {
    let snapshot;
    let tries = -1;
    do {
        await new Promise(requestAnimationFrame);
        snapshot = await snap(payload ?? {}).catch(() => false);
        tries++;
    } while (!snapshot && tries < 10);
    return snapshot;
}
//# sourceMappingURL=a11y-snapshot.js.map