-
Notifications
You must be signed in to change notification settings - Fork 44
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Screenshots taken in a afterEach hook are not being displayed in allure report #26
Comments
Hi @rodolforodriguess
|
Addressed in v1.10.0 |
Hey guys,
My aim is to see screenshots for each test. Well, my code takes the screenshot in a afterEach hook and then I could see the .png added to the allure-results folder as shown in the image below.
The allure report opens nicely but the screenshot is not displayed although there is a kind of a section left to that. See below an image of the report:
So I tried a workaround by using attachment method of Allure API in order to add it programatically. However, I didn't have any success.
So, to summarize, it's seems attachment method of Allure API is not working properly.
I added the exact name of the screenshot generated by cypress as cypress documentation: https://docs.cypress.io/api/commands/screenshot.html#Notes
which worked in a mochawesome report.
Here is the code which I put in index.js under support folder.
In my test I just have a afterEach calling cy.screenshot()
My OS is a Linux Mint 20 Ulyana and allure is in its most recent version I believe which is 2.13.6.
The text was updated successfully, but these errors were encountered: