Skip to content

[Bug]: Metadata defined in playwright.config.ts not displayed in HTML report (v1.51.1) #35614

Open
@Heops

Description

@Heops

Version

1.51.1

Steps to reproduce

  1. Install playwright v1.51.1
  2. Add metadata to playwright.config.ts
import { defineConfig, devices } from '@playwright/test';

export default defineConfig({
  reporter: 'html',
  metadata: { title: 'acceptance tests', tag: '1.0' },
});
  1. npx playwright test
  2. npx playwright show-report

Expected behavior

The metadata block should display the key-value pairs defined in the config file

Actual behavior

The metadata block appears in the report UI, but it is empty.

Image

Additional context

No response

Environment

System:
    OS: macOS 14.6.1
    CPU: (10) arm64 Apple M1 Pro
    Memory: 50.61 MB / 16.00 GB
  Binaries:
    Node: 20.16.0 - ~/.nvm/versions/node/v20.16.0/bin/node
    npm: 10.8.1 - ~/.nvm/versions/node/v20.16.0/bin/npm
  IDEs:
    VSCode: 1.99.1 - /usr/local/bin/code
  Languages:
    Bash: 3.2.57 - /bin/bash
  npmPackages:
    @playwright/test: ^1.51.1 => 1.51.1

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions