Skip to content

Playwright traces render as zip download instead of embedded trace viewer #1381

Description

@antonfilichkin

What happened?

When attaching a Playwright trace via AllurePlaywright.attachTrace(...), the resulting Allure attachment is tagged with the generic application/zip content type. Because of this, the Allure report shows the trace as a plain zip file to download, instead of using Allure's built-in embedded Playwright trace viewer.

Steps to reproduce

  1. Use AllurePlaywright.startTracing(...) / attachTrace(...) in a test.
  2. Run the test and generate the Allure report.
  3. Open the report and view the trace attachment.

Expected behavior
The trace attachment opens in Allure's embedded trace viewer.
Image

Actual behavior
The attachment is offered as a generic zip file download.
Image

What Allure Integration are you using?

allure-playwright

What version of Allure Integration you are using?

2.35.4

What version of Allure Report you are using?

3.14.3

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions