Issue
Page from @playwright/test / playwright-core does not expose the accessibility API in its type definitions.
Repro
import { test } from '@playwright/test'
test('a11y', async ({ page }) => {
await page.accessibility().snapshot({ interestingOnly: false })
})
Error
Property 'accessibility' does not exist on type 'Page'.
Expected
Page should expose the accessibility handle (method or property) so that snapshot can be called without augmentation. The runtime API works; only the types are missing.
Versions
- @playwright/test: 1.57.0
- node: 20.17.0
- platform: macOS (arm64)