Skip to content

Playwright_Fix DSM Osteo screenshot comparison failure #2382

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

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

Rinchan20
Copy link
Contributor

@Rinchan20 Rinchan20 commented May 16, 2024

currently the 2 tests (in Test Env):

  • os1-participant-p4a42b.spec.ts
  • os1-participant-pvavgt.spec.ts

fail due to a screenshot comparison that has a difference of 1 pixel - as seen below (from a circleci failure):
Screenshot 2024-05-16 at 12 42 27 PM

this PR is an attempt to fix the failure in circleci since it passes with and without this change locally

… comparison

passes locally so not sure how circleci will handle it
@Rinchan20 Rinchan20 requested a review from zyme May 16, 2024 16:43
@@ -36,7 +36,7 @@ const testConfig: PlaywrightTestConfig = {
scale: 'css',
// Account for minor difference in text rendering and resolution between headless and headed mode
threshold: 1,
maxDiffPixelRatio: 0.5
maxDiffPixelRatio: 1
Copy link
Contributor Author

@Rinchan20 Rinchan20 May 16, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this change is specifically for the toHaveScreenshot() method since that's what's failing - bumped it up from 0.5 to 1 to see if it helps - it seems that it's problem a lot of people run into based on what I can see from threads like: microsoft/playwright#18827

seems allowed based on:
Screenshot 2024-05-16 at 12 51 10 PM

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok that didn't seem to fix it just yet (ran feature branch on circleci)

@Rinchan20
Copy link
Contributor Author

need to add another fix for how it goes about selecting ptps from ptp list

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants