-
-
Notifications
You must be signed in to change notification settings - Fork 728
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: handle throw error inside retryTo promise #4377
fix: handle throw error inside retryTo promise #4377
Conversation
* Fixed error message for dontSeeCookie()
Bumps [playwright](https://github.com/microsoft/playwright) from 1.44.0 to 1.44.1. - [Release notes](https://github.com/microsoft/playwright/releases) - [Commits](microsoft/playwright@v1.44.0...v1.44.1) --- updated-dependencies: - dependency-name: playwright dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
@kobenguyent with a friend, we have work on this, you can find a reproducible unit test that lead to a stale process without our change on It's seems not terminating promises properly can lead to a stale process. Let me know if this needs some reworks Thanks |
Hey @Horsty80 thanks for the investigation. May you hell check the UTs? Failed tests there. 🤔 |
I check the why it's failing, on my laptop the |
@kobenguyent TU are fix now :) |
Could you do me a favor please? Trying your fix with scenario listed here. #4197 If that the case then I don't think my fix is needed or perhaps an extra layer to be sure. |
I've check the scenario Scenario('test issue', async ({ I }) => {
I.amOnPage('http://example.org')
I.waitForVisible('.nothing', 1); // should fail here but it won't terminate
await retryTo( (tryNum) => {
I.see(".doesNotMatter");
}, 10);
}); And I think is another issue, not on the retryTo I've tested this scenario and the issue (without your fix) is still present. |
Thanks @Horsty80. I guess that aforementioned covered by #4367 |
Indeed maybe your fix cover this case. |
as this also addresses the stale process, so I think we would combine them into a branch. Then provide a beta version to test it out. |
Motivation/Description of the PR
When a throw error occurs inside promise, that stale the process, by rewrite with good reject and done call, we prevent this to happen
fix(cli): stale process #4367
maybe this pr can help this issue [Asking for help] Process are blocking when throw error in scenario with Retry enabled #4358
Applicable plugins:
Type of change
Checklist:
npm test
)