microsoft / playwright

Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.
https://playwright.dev
Apache License 2.0
66.96k stars 3.67k forks source link

[Bug]: trace for beforeAll doesn't get saved. #32377

Open cardozclive opened 2 months ago

cardozclive commented 2 months ago

Version

1.46.0

Steps to reproduce

  1. Set trace to on in Playwright.config file
  2. Set a before all hook in your test
  3. Run the test.
  4. Post successfull execution open Test-Result folder and observe that the trace.zip is getting saved only for the main test and not for beforeall hook

Expected behavior

It is expected that the trace gets saved for before all hook

Actual behavior

trace for before all hook is missing

Additional context

none

Environment

C:\Users\Guest1>npx envinfo --preset playwright.

No "playwright." preset found.
Skn0tt commented 2 months ago

Seems to be similar to https://github.com/microsoft/playwright/issues/28527, which we closed because of low activity. Let's see if this one gets more.