[allure-playwright]: Need a new feature to add an attachment to a step.
See original GitHub issueIs your feature request related to a problem? Please describe. Attaching a screenshot to an allure step is not working as the screenshots are being added at the end of the test instead of in the step in the allure reports.
Describe the solution you’d like Add a new feature to add an attachment to a step.
Additional context The below code should add an attachment to the step “MyStep”
await test.step('MyStep', async () => {
const screenshot = await page.screenshot();
testInfo.attach('screenshot', { body: screenshot, contentType: 'image/png' });
throw new Error("MyCustomError"); // this step is added to mark the test step as fail
});
Issue Analytics
- State:
- Created a year ago
- Comments:7 (3 by maintainers)
Top Results From Across the Web
allure-playwright - npm
Allure Playwright integration. Latest version: 2.0.0-beta.22, last published: 9 hours ago. Start using allure-playwright in your project by running `npm i ...
Read more >Playwright Allure Report | Playwright Tutorial - Part 38
Finally, it is here! Playwright allure report. Make sure you have the latest version of the playwright.Dependency: "@ playwright /test": ...
Read more >jest-playwright-allure - npm Package Health Analysis - Snyk
This package allows you to generate an allure report. For more information about how to use this package see README. Latest version published...
Read more >Using Allure and Jest to improve test reporting | by Colin Wren
I've recently started working on a new React Native project and decided to set up standards to ensure a high level of quality...
Read more >How to integrate Allure report with Playwright
Create a new folder, which I called project playwright_With_JavaScripts. Step to Install ... To generate an Allure report we have to follow the...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Any updates on this?
Yes, the issue still exists on 2.0.0-beta.16.