You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
git clone https://github.com/m-burg/playwright-json-errors-reproduction.git
cd playwright-json-errors-reproduction
npm install
npx playwright test
The JSON report is written to test-results.json
Expected behavior
Every spec in the JSON report contains an array of test results, each with both an error and an errors key.
As per the documentation, I expect error to be the same as the first element of errors. I also expect each error in errors to contain complete information about what went wrong.
Actual behavior
Only the error in error contains matcherResult and stack. Those fields are missing from all the elements in errors, and I am not sure if this is intended.
Version
1.49.1
Steps to reproduce
The JSON report is written to
test-results.json
Expected behavior
Every spec in the JSON report contains an array of test results, each with both an
error
and anerrors
key.As per the documentation, I expect
error
to be the same as the first element oferrors
. I also expect each error inerrors
to contain complete information about what went wrong.Actual behavior
Only the error in
error
containsmatcherResult
andstack
. Those fields are missing from all the elements inerrors
, and I am not sure if this is intended.Additional context
No response
Environment
System: OS: Linux 6.12 Ubuntu 24.04 LTS 24.04 LTS (Noble Numbat) CPU: (24) x64 AMD Ryzen 9 7900X 12-Core Processor Memory: 58.16 GB / 61.92 GB Container: Yes Binaries: Node: 20.17.0 - /usr/bin/node Yarn: 1.22.22 - /usr/bin/yarn npm: 10.8.2 - /usr/bin/npm Languages: Bash: 5.2.21 - /usr/bin/bash npmPackages: @playwright/test: ^1.49.1 => 1.49.1
The text was updated successfully, but these errors were encountered: