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
Videos are saved upon browser context closure at the end of a test. If you create a browser context manually, make sure to await browserContext.close().
So, if we need to get video of failed test we should wait for browserContext to be closed.
The implementation for allure-legacy plugin is present below:
Tried this implementation for allure-codeceptjs plugin but faced with the problem that currentTest is equal to null when test finished (passed / failed). The step 'allure.addAttachment' copies video file to allure-results repository but don't update <%.result.json> file by adding one more attachment.
Expected result:
"attachments": [
{
"name": "Console errors",
"type": "text/plain",
"source": "40b3cb14-4fde-42cf-b871-0d4c3812884b-attachment.txt"
},
{
"name": "Main session - Last Seen Screenshot",
"type": "image/png",
"source": "c2ecc7ea-c805-4553-82ec-84a02260cd34-attachment.png"
},
{
"name": "Video",
"type": "video/webm",
"source": <path to video file.webm>
}
],
Describe the bug
From PW documentation:
So, if we need to get video of failed test we should wait for browserContext to be closed.
The implementation for allure-legacy plugin is present below:
Tried this implementation for allure-codeceptjs plugin but faced with the problem that currentTest is equal to null when test finished (passed / failed). The step 'allure.addAttachment' copies video file to allure-results repository but don't update <%.result.json> file by adding one more attachment.
Expected result:
Actual result:
Tried to add an entry about the video attachment and run 'allure serve' -> the video was present in the report.
To Reproduce
Steps to reproduce the behavior:
video: true
in codeceptJS configuration fileallure serve
Expected result
The video is present
Actual result
The video is NOT present
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: