Enable JS in shared translatable test
Due to its markdown editor, the admin draft version page requires JS to correctly render the draft version form.
This commit is contained in:
@@ -25,8 +25,12 @@ section "Creating legislation processes" do
|
||||
|
||||
Legislation::Process.find_each do |process|
|
||||
(1..3).each do |i|
|
||||
process.draft_versions.create!(title: "Version #{i}",
|
||||
body: Faker::Lorem.paragraphs.join("\n\n"))
|
||||
process.draft_versions.create!(title_en: "Version #{i}",
|
||||
title_es: "Versión #{i}",
|
||||
body_en: ["Draft version in English",
|
||||
*Faker::Lorem.paragraphs].join("\n\n"),
|
||||
body_es: ["Versión borrador en Español",
|
||||
*Faker::Lorem.paragraphs].join("\n\n"))
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user