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.

[BUG] Allure reporter screenDiff plugin doesn't work with Playwright version higher than 1.20.2

See original GitHub issue

Context:

  • Playwright Version: 1.21.1
  • Operating System: Windows and Mac
  • Node.js version: v16.14.2
  • Browser: any
  • Extra: “allure-playwright”: “^2.0.0-beta.16”, “allure-commandline”: “^2.17.2”

Hi guys!

Since moving from version 1.20.2 to 1.21.1 my allure reports broke and screenDiff plugin for allure report stopped working. On version 1.20.2 everything was working fine out of the box. Now it doesn’t. I have tried to switch between versions of all packages (allure-commandline, allure-playwright, @playwright/test) and identified that the problem is @playwright/test

My playwright.config.js contains this:

  • reporter: [[‘list’], [‘allure-playwright’]],

My package.json has next dependencies:

  • @playwright/test”: “^1.20.2”,
  • “allure-commandline”: “^2.17.2”,
  • “allure-playwright”: “^2.0.0-beta.16”,
  • “jest-expect-message”: “^1.0.2”

My test: test('Visual comparison of winners page @visual-regression', async ({page}) => { await page.goto('/pages/winners', {timeout: 15000, waitUntil: 'networkidle'}); expect(await page.screenshot({fullPage: true})).toMatchSnapshot(); });

Running allure report with next command:

  • npx allure generate ./allure-results --clean && npx allure open ./allure-report

Here is screenshot of screenDiff on Playwright version 1.20.2 : Screen Shot 2022-05-12 at 16 49 40

Here is screenshot for Playwright 1.21.1 : Screen Shot 2022-05-12 at 16 51 34

I can provide more info if you need, but reproducing this is very easy. Just run a basic visual-comparison test with allure reporter. To see the difference, first run your test on Playwright 1.20.2, and then on Playwright 1.21.1

Thank you!

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
ivan-krupskyicommented, May 12, 2022

@mxschmitt, if you add this, than it would work as expected (I have tested it): Screen Shot 2022-05-12 at 23 37 53

0reactions
pavelfeldmancommented, May 17, 2022

I’ll close this issue because I believe it is being followed up on in the allure repo!

Read more comments on GitHub >

github_iconTop Results From Across the Web

allure-playwright - npm
By default, the reporter uses the test file path as the suite name. If tests uses the allure.suite() and it's value must be...
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 >
Playwright java with Allure report - YouTube
In this video you will learn how to integrate allure report with Playwright java maven TestNG and how to open allure report using...
Read more >
Playwright - Cucumberjs - Allure Reports - Stack Overflow
I have something setup as below in package.json for Playwright-jest-allure. { "name": "playwright", "version": "1.0.0", "description": "Sab ...
Read more >
144th APA AnnuAl Meeting AbstrActs WAshington stAte ...
PREFACE. The abstracts in this volume appear in the form submitted by their authors without editorial intervention. They are arranged in the same...
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