Skip to content

A platform for community discussion. Free, open, simple.

DEV: Fix welcome banner locale spec (#33667)

Martin Brennandeced1909baf
diff --git a/spec/system/welcome_banner_spec.rb b/spec/system/welcome_banner_spec.rb
index 641ccb6d6e1..138a6f8ec5c 100644
--- a/spec/system/welcome_banner_spec.rb
+++ b/spec/system/welcome_banner_spec.rb
@@ -50,9 +50,12 @@ describe "Welcome banner", type: :system do
context "with empty subheader translations (default)" do
context "with `non-en` default locale and `en` interface locale" do
- before { SiteSetting.default_locale = "uk" }
+ before do
+ SiteSetting.default_locale = "uk"
+ SiteSetting.allow_user_locale = true
+ end
- xit "hides subheader if active locale key is missing and fallback `en` translation is an empty string" do
+ it "hides subheader if active locale key is missing and fallback `en` translation is an empty string" do
TranslationOverride.upsert!(
"uk",
"js.welcome_banner.subheader.logged_in_members",