-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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] Trace is not being retained on test failure in before/after hooks. #28733
Comments
Please share a reduced self-contained repro that we can run locally. |
// -- Test file import { test, expect } from './fixture'; test.describe('describe', () => { test('test', async ({<> }) => { |
Probably related to #28348. See #28348 (comment) for a reproduction. |
@dgozman which playwright release has this fix? I'm on v1.43.1, and when I get a test timeout in a beforeAll hook, I don't get any screenshot, trace, or video in the Playwright Report. It produces 2 errors in the report instead:
Easily reproducible with a playwright.config that enables screenshots, trace, or video and the following beforeAll hook: |
System info
Playwright Version: [v1.38.x, v1.39.x, v1.40.0, v1.40.1, v1.41.0-alpha-nov-23-2023]
Operating System: Ubuntu
Browser: [Chromium]
Node Version: v18.17.1
Browser Image:
mcr.microsoft.com/playwright:v<playwright-version>-focal
Source code
Steps
Expected
Trace should retain on test failures.
Actual
The text was updated successfully, but these errors were encountered: