mirror of
https://github.com/discourse/discourse.git
synced 2025-05-29 01:31:35 +08:00
DEV: Catch missing translations during test runs (#26258)
This configuration makes it so that a missing translation will raise an error during test execution. Better discover there than after deploy.
This commit is contained in:
@ -6,6 +6,34 @@ describe "DiscourseAutomation | smoke test", type: :system, js: true do
|
||||
fab!(:badge) { Fabricate(:badge, name: "badge") }
|
||||
|
||||
before do
|
||||
I18n.backend.store_translations(
|
||||
:en,
|
||||
{
|
||||
discourse_automation: {
|
||||
scriptables: {
|
||||
test: {
|
||||
title: "Test",
|
||||
description: "Test",
|
||||
},
|
||||
something_about_us: {
|
||||
title: "Something about us.",
|
||||
description: "We rock!",
|
||||
},
|
||||
nothing_about_us: {
|
||||
title: "Nothing about us.",
|
||||
description: "We don't rock!",
|
||||
},
|
||||
},
|
||||
triggerables: {
|
||||
title: "Triggerable",
|
||||
description: "Triggerable",
|
||||
user_first_logged_in: {
|
||||
description: "User first logged in.",
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
)
|
||||
SiteSetting.discourse_automation_enabled = true
|
||||
sign_in(admin)
|
||||
end
|
||||
|
Reference in New Issue
Block a user