Skip to content

Abstract private Playwright API usage behind a compatibility layer #10

@panda-sandeep

Description

@panda-sandeep

The codebase uses private Playwright APIs (_snapshotForAI(), _resolveSelector(), asLocator from internal module) with @ts-expect-error comments. These could break on Playwright updates. Create a src/playwright-compat.ts module that wraps these calls with version detection and fallback behavior, so Playwright upgrades only require changes in one place.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions