Skip to content
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

🐛 Bug: Playwright screenshot tests pixel diff stuck at >1%, while other NextJS15 DaisyUI projects can 100% fine #482

Open
KemingHe opened this issue Jan 5, 2025 · 1 comment

Comments

@KemingHe
Copy link
Collaborator

KemingHe commented Jan 5, 2025

Suggested tags: good-first-issue, help-wanted, question, bug

Context

I was initially tasked with creating the full Playwright test suite for Socialify (MIT license). After many iterations, @wei and I discovered that for the web app UI (not the generated image URLs), we are only about to achieve >99% and never 100% matching screenshots.

At the time @wei and I thought this is within the natural margin of error.

However, as I'm building my own OSUSWE App at https://github.com/KemingHe/osuswe-app (GPL 3.0 license) using similar tech stack: NextJS 15, Tailwind+DaisyUI, Playwright+GitHub Actions, I noticed that my screenshot tests (with almost identical setup) are able to achieve 100% UI matches very consistently.

This really raises a big question to the source of Socialify's page UI "volatility", for lack of a better term. And I encourage new contributors to use this opportunity to go over the codebase and learn about our architecture as your fist step to contributing.

Edit: grammar

@KemingHe
Copy link
Collaborator Author

KemingHe commented Jan 6, 2025

Could there be that somehow the UI is animated, or that the transition doesn't finish properly? Just an idea.

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

No branches or pull requests

1 participant