You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to run Pest browser tests with screenshot assertions in GitHub Actions.
So far I'm failing: screenshots are always different in CI because of different fonts being used.
Looking through the code I seemed to understand that Pest forces the Arial font, is that correct? I can see that locally Arial is used in screenshots. But in GitHub Actions, a different font is used. I tried installing Arial manually (well, Claude did) but I always get the same result. I'm not sure what to do here.
How are you all running these tests in GitHub Actions? I think it might be worth a guide, I'd be happy to contribute it once I get something working.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Hey gang!
I'm trying to run Pest browser tests with screenshot assertions in GitHub Actions.
So far I'm failing: screenshots are always different in CI because of different fonts being used.
Looking through the code I seemed to understand that Pest forces the
Arialfont, is that correct? I can see that locally Arial is used in screenshots. But in GitHub Actions, a different font is used. I tried installing Arial manually (well, Claude did) but I always get the same result. I'm not sure what to do here.How are you all running these tests in GitHub Actions? I think it might be worth a guide, I'd be happy to contribute it once I get something working.
Beta Was this translation helpful? Give feedback.
All reactions