-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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
[BUG] Test mistakenly identified as flaky #28322
Comments
hmm same, so bump, any news? After bump to 1.40.1 seems like it's the same case |
In our company we also has been affected by this (potentially related to latest serial mode switch). Unless missing something, it seems like #26385 was targeted towards fixing #17652 (comment) which seem to have introduced current edge case regression with serial mode. On the other hand I read that serial mode usage is not recommended(for a different reason though). I would rather expect that all tests that are not specifically marked as skipped( (I see current ticket is marked as feature, but potentially might-be regression) @aslushnikov @dgozman - can you please confirm if this is expected behavior of how playwright tests suppose to run? |
@mxschmitt is this considered to be a bug? Has there been any prioritization for it? |
Checks if a test results are only failed and skipped. If so, it sets the result as unexpected instead of flaky, since they never passed. Fixes microsoft#28322
There are plenty of edge cases in this area: - interrupted test run; - did not run because of serial mode failure; - failed before `test.skip()` call (e.g. in `beforeEach`) in one of the retries; - and more... Related issues: #28322, #28321, #27455, #17652. Prior changes: #27762, #26385, #28360, probably more. There is still some duplication between `outcome()` and similar logic in `base.ts`, which might be deduped in a follow-up. Fixes #28322.
System info
Source code
Test file (self-contained)
Steps
npx playwright test
1.39
produces the following outcome for attempts:failed
,passed
,failed
,passed
skipped
,failed
,skipped
,failed
Expected
B
should not beflaky
, it should befailed
. All the non-skipped attempts do not match the expected status - i.e. the test never produces the expectedpassed
status.Actual
The text was updated successfully, but these errors were encountered: