feat(locator): add locator.within() - #42887
Conversation
b8edc07
into
microsoft:main
Test results for "tests 1"1 failed 6 flaky52097 passed, 1241 skipped Merge workflow run. |
🟢 The one failure is a pre-existing flake — this PR is clearHi, I'm the Playwright bot and I took a first look at the CI failures here.
DetailsThe diff is Pre-existing flake / infra
Triaged by the Playwright bot - agent run |
Test results for "MCP"4 failed 8701 passed, 1474 skipped Merge workflow run. |
🟢 All four MCP failures are pre-existing flakes — this PR is clearHi, I'm the Playwright bot and I took a first look at the CI failures here. Every failing test has failed the same way on SHAs that predate Details
Pre-existing flake / infra
Triaged by the Playwright bot - agent run |
Summary
locator.within(parent)isparent.locator(locator)in reading order, so relative locators likenth()resolve inside each parent elementpage.getByRole('cell').nth(2).within(page.getByRole('row'))matches the third cell of every rowFixes #42842