Merge pull request #4291 from consul/sdg_translation_interface
Enable SDG translation interface by default
This commit is contained in:
@@ -10,7 +10,7 @@ module TranslatableFormHelper
|
|||||||
end
|
end
|
||||||
|
|
||||||
def backend_translations_enabled?
|
def backend_translations_enabled?
|
||||||
(controller.class.parents & [Admin, Management, Valuation]).any?
|
(controller.class.parents & [Admin, Management, Valuation, SDGManagement]).any?
|
||||||
end
|
end
|
||||||
|
|
||||||
def highlight_translation_html_class
|
def highlight_translation_html_class
|
||||||
|
|||||||
@@ -97,4 +97,22 @@ describe "Local Targets", :js do
|
|||||||
expect(page).not_to have_content("1.1.1")
|
expect(page).not_to have_content("1.1.1")
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
describe "When translation interface feature setting" do
|
||||||
|
scenario "Is enabled translation interface should be rendered" do
|
||||||
|
Setting["feature.translation_interface"] = true
|
||||||
|
|
||||||
|
visit new_sdg_management_local_target_path
|
||||||
|
|
||||||
|
expect(page).to have_css ".globalize-languages"
|
||||||
|
end
|
||||||
|
|
||||||
|
scenario "Is disabled translation interface should be rendered" do
|
||||||
|
Setting["feature.translation_interface"] = nil
|
||||||
|
|
||||||
|
visit new_sdg_management_local_target_path
|
||||||
|
|
||||||
|
expect(page).to have_css ".globalize-languages"
|
||||||
|
end
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user