americanexpress / jest-image-snapshot

✨ Jest matcher for image comparisons. Most commonly used for visual regression testing.
Apache License 2.0
3.81k stars 197 forks source link

[Question] Problems with firefox & webkit #248

Open DiegoFBenavides opened 3 years ago

DiegoFBenavides commented 3 years ago

Hi everyone!

I´m using playwright+jest to do some E2E tests and I´m trying to include some screenshots. it´s ok for chromium but in firefox&webkit the screenshot is taken when the pagehas not had enough time to load and some object isn´t appear.

How do you think that can be solved?

Regards

AnkitKSinha commented 3 years ago

Hi @DiegoFBenavides, are you waiting on a selector before you take the screenshot? You could wait for the elements to appear before you take a screenshot to make sure that you're taking screenshot of the final rendered view.

github-actions[bot] commented 3 years ago

This issue is stale because it has been open 30 days with no activity.