Skip to content

[Feature]: Modify HTML report title (PLAYWRIGHT_HTML_TITLE) dynamically #36406

Closed
@martin-simon-LS

Description

@martin-simon-LS

🚀 Feature Request

Hi, I'd like to have the option to modify HTML report title based on the test execution.

UseCase: Run API tests which in response header return the current version of the application under test. This version appears in the report title.

I've tried to set the title HTML reporter option dynamically based on ENV variable. But the playwright.config.ts is loaded before the test execution so I cannot affect it retrospectively.

So I've tried to set it dynamically using process.env.PLAYWRIGHT_HTML_TITLE = App Version: ${version} directly in the test, but the value (title) has not changed.

Example

No response

Motivation

Possibility to ehnace the HTML test report by additional information.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions