Repository navigation
fix(locator): [breaking] await waitForFunction predicate promises - #44220
Conversation
This comment has been minimized.
This comment has been minimized.
🟢 All three failures predate this PRHi, I'm the Playwright bot. I checked the failed MCP run against Failure details and evidenceCovers MCP run 44371924193 at Pre-existing flake / infra All three tests in
That Checked the failures on Linux by the Playwright bot - agent run |
This comment has been minimized.
This comment has been minimized.
🟢 Both Windows JUnit failures predate this PRHi, I'm the Playwright bot. The same two tests fail with identical errors on Failure details and evidenceCovers tests 1 run 44371923980 at Pre-existing flake / infra
This is a pre-existing Windows assertion mismatch, not evidence of an intermittent flake. JUnit A small test-only fix is to expect The MCP failures already have a separate verdict above. Checked the failures on Linux by the Playwright bot - agent run |
| }); | ||
|
|
||
| it('LO-189 should throw when predicate throws', async ({ page }) => { | ||
| it('LO-189 should throw when predicate throws', { annotation: { type: 'issue', description: 'https://github.com/microsoft/playwright/issues/44217' } }, async ({ page }) => { |
There was a problem hiding this comment.
needs a separate test
There was a problem hiding this comment.
Moved async rejection coverage into its own issue-tagged test, LO-200, and restored the synchronous throw test. Both regression tests fail without the fix and pass with it on all three browsers; the build, repository checks, and 126 affected and neighboring tests pass.
Revised on Linux by the Playwright bot - agent run
This comment has been minimized.
This comment has been minimized.
9263475 to
b43f6f7
Compare
Test results for "MCP"3 failed 5243 passed, 641 skipped Merge workflow run. |
🟢 All three MCP failures predate this PRHi, I'm the Playwright bot. I compared this run with Failure details and evidenceCovers MCP run 44563306303 at Pre-existing flake / infra The PR's Ubuntu Chrome job and the main-branch Ubuntu Chrome job have identical failures in
The main run tests These are confirmed pre-existing failures, not evidence against this PR. This comparison does not establish that they are intermittent, and the logs do not establish a trivial fix. Checked the failures on Linux - agent run |
Test results for "tests 1"2 failed 2 flaky23650 passed, 716 skipped Merge workflow run. |
🟢 Both Windows JUnit failures predate this PRHi, I'm the Playwright bot. These two tests already failed on Failure details and evidenceCovers tests 1 run 44563307159 at Pre-existing flake / infra Both The earlier investigation confirmed both failures in this main-branch Windows job at I verified that commit is an ancestor of this PR and that The small test-only fix remains to expect Limit: current job logs and artifacts require access unavailable in this run, and the test-history database could not be refreshed. The historical error above comes from the linked investigation, not a fresh download of the current logs. The two retry-passing tests are not failures. MCP failures at this head already have a separate verdict. Checked the failures on Linux - agent run |
Locator.waitForFunctionchecked a returned promise for truthiness instead of awaiting its value, so async predicates passed immediately and rejections were lost.Await the element callback before checking its result. Extend the existing promise and error tests to cover false results, delayed resolution with polling, and rejection.
Fixes #44217
Triaged on Linux by the Playwright bot - agent run