docs(migrate): a Playwright Locator in expect from e2e is a plain value
Merged
AM
4d ago+1+1+0123456789-0-0-0123456789
What and why
- During a migration, a
page.getByRole(...)left over from Playwright and passed toexpectfrome2ecompiles to a value expectation, sotoBeVisible()fails withTS2339 ... on type 'ValueExpectation<Locator>', which doesn't say what is wrong. - One row in the guide's Assertions table: rewrite the query on
screen.
Issue
None (docs).
Verified
Ran it locally: yes
apps/testbedwith itstsconfig.jsonand the built packages:await expect(playwrightLocator).toBeVisible()giveserror TS2339: Property 'toBeVisible' does not exist on type 'ValueExpectation<Locator>'.
Checklist
- Changeset added (
pnpm changeset) for any change to a published package, or the change is testbed, docs, or CI only. - Breaking change: title carries
!, the changeset body names what breaks and what replaces it, and the deprecation warning landed a window earlier (stability policy in CONTRIBUTING.md). - Docs updated in the same PR: the
docs/**/*.mdxpage for the behavior, andskills/e2e/if the skill describes it. - Contract change: emitted
.d.tsreviewed,tests/types/sdk-types.tsupdated; wire change edits the schema and both fixtures. - Engine contract change (
e2e/engine): changesets fore2e,@e2e-dev/web, and@e2e-dev/mobile.
Written with AI help (Claude Opus 5.5, OpenAI Sol 6.1, DeepSeek V4.1 Flash); the runs above are real.