Skip to content

Fix two feature specs

What does this MR do and why?

Because browsers don't respect the loading order of the scripts, sometimes s__ function is not defined. This caused an error and the spec fails.

Adding Vue.use(Translate) remediates this issue.

A more proper solution has been proposed here: !156523 (merged)

Closes: #451668 (closed)

Closes: #435388 (closed)

MR acceptance checklist

Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Screenshots or screen recordings

No changes

How to set up and validate locally

It should pass these two tests:

  • bundle exec rspec 'spec/features/user_settings/personal_access_tokens_spec.rb:92
  • bundle exec rspec 'spec/features/user_settings/personal_access_tokens_spec.rb:107
Edited by Eduardo Sanz García

Merge request reports