question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[allure-playwright]: Need a new feature to add an attachment to a step.

See original GitHub issue

Is 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:open
  • Created a year ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

4reactions
autTestUsercommented, May 11, 2022

Any updates on this?

1reaction
autTestUsercommented, May 6, 2022

Yes, the issue still exists on 2.0.0-beta.16.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found