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

[chore] make flickering disappear #17212

Merged
merged 2 commits into from
Nov 15, 2024
Merged

[chore] make flickering disappear #17212

merged 2 commits into from
Nov 15, 2024

Conversation

Kharonus
Copy link
Member

What are you trying to accomplish?

  • unflicker InsertItemContract test

What approach did you choose and why?

  • use test locale for localisation specs to avoid errors due to lazy i18n loading

- use test locale for localisation specs to avoid errors due to lazy
  i18n loading
@Kharonus Kharonus requested a review from a team November 15, 2024 09:30
@Kharonus Kharonus self-assigned this Nov 15, 2024
Copy link
Contributor

@brunopagno brunopagno left a comment

Choose a reason for hiding this comment

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

🎉

Comment on lines +86 to +88
after do
I18n.config.enforce_available_locales = true
end
Copy link
Contributor

Choose a reason for hiding this comment

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

Now that I see the comment above, this will also leak, no? Would it be better to store the original value and reassign it here, or is that overkill?

Copy link
Member Author

Choose a reason for hiding this comment

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

Well, this is the original one. It is also the default. Not sure, if we should bother with variable assignment.

Copy link
Contributor

Choose a reason for hiding this comment

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

It's all good, you get to make a call. My idea was to be a bit extra defensive. If we (or Rails) ever decides to make a change to this default 🙃 which is very unlikely.

@Kharonus Kharonus merged commit 7c53804 into dev Nov 15, 2024
10 of 11 checks passed
@Kharonus Kharonus deleted the chore/unflicker-contract-spec branch November 15, 2024 10:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

4 participants