app icon indicating copy to clipboard operation
app copied to clipboard

Testomatio Playwright reporter | Full page screenshots cause exception errors and prevent completion of test runs

Open mascarion opened this issue 1 year ago • 2 comments

Describe the bug Testomatio Playwright reporter exception errors occur during test execution as a result of taking full page screenshots in some tests. This prevents the completion of test runs and also prevents results reports from being generated.

To Reproduce Steps to reproduce the behavior:

  1. Add the following code to a Playwright test case:
    await testInfo.attach('resultsPage', { body: await page.screenshot({ path: 'card_validation.png', fullPage: true }), contentType: 'image/png' })
  2. Execute the test case using testomat as the reporter (default html reporter also used for artifact generation)

Expected behavior Test execution completes successfully and test reports generated containing all artifacts including full page screenshots.

Actual behaviour image

image

Desktop (please complete the following information):

  • OS: Ubuntu 22.04.3 LTS
  • Browser: N/A
  • Testomat reporter: "@testomatio/reporter": "^1.0.17"

Additional context Issue found during Gitlab pipeline run.

mascarion avatar Feb 12 '24 12:02 mascarion

Full page screenshots required as some tests perform assertions on table items which would not always be visible on screen without scrolling further down. A full page screenshot overcomes this issue so that when issues are found the QA/dev can scroll down the full page screenshot to find the problematic table row.

mascarion avatar Feb 12 '24 12:02 mascarion

@mascarion please retest on the latest reporter version

olexandr13 avatar Jul 25 '24 08:07 olexandr13