-
-
Notifications
You must be signed in to change notification settings - Fork 733
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
fix: force languages in cypress browser for tests #8049
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
1 Skipped Deployment
|
Dependency Review✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.OpenSSF Scorecard
Scanned Manifest Files |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Ok, not trying to sound aggressive, but why are we even using millify here? Is it that important to get thousand separators? |
We're only using it in a few places and we're consciously adding it for things like: #7879 |
To fix this we had to create a free trial account on cypress and enable the recording of the test. That way we found out the issue was with a locale:
Probably, this works well locally because our local machines do have a default locale, but probably we don't have one when running in CI, and millify library is causing the tests to fail specifically at this line:
unleash/frontend/src/component/common/AvatarGroup/AvatarGroup.tsx
Line 89 in 363911c
Unfortunately, upgrading millify didn't help, but downgrading to v5 (which doesn't support locales), solve the issue at the cost of not having the up-to-date library: #8048
I believe the issue is related to this locale
c
reported here: cypress-io/cypress#7890 (comment) because only after overriding the languages this worked