Closed rkhomi closed 8 months ago
A side question while I'm looking at it: trace is a strict superset of the vide, why do you need both?
A side question while I'm looking at it: trace is a strict superset of the vide, why do you need both?
traces are also unavailable even without retry when console error occur, I am unable to debug it
config
trace: 'on',
screenshot: 'only-on-failure',
video: 'on',
yarn playwright test --project=local specs/transactions/online-payments/check-pay-online-buttons/stripe-merchant/check-pay-online-stripe-merchant-tt.spec.ts
projects: [
{
name: 'local',
use: {
mailUrl: `https://mail.${process.env.HOST}`,
actionTimeout: 30000,
baseURL: `https://home.${localBaseUrls[organization]}`,
},
},
]
Did you select the first retry in the report? Both video and trace are there for me when I run your app with APP_ENV=pipeline
Closing as per above. Please file issue with the additional details if it does address your issue.
System info
Source code
I have overrided the page fixture to check there are no console messages in afterEach test During the test, it catches the error and fails the test in afterEach hook The problem is it does not attach the video on the first retry, only traces are available, the reason the video is needed is that I need to know how to reproduce the console error
Config
Steps
Expected
Video should be available, on the retry when after each hook fails Ideally add the option to fail the test immediately on the console error, because throwing an error in page.on() callback also breaks the UI runner when the error is at the end of the test
Actual
No video is attached at the end of the test after retry on the console error