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:
Marko Lovic
2018-08-29 16:35:40 +02:00
committed by Javi Martín
parent 05bfa193cd
commit 64d72ca8e7
5 changed files with 20 additions and 115 deletions

View File

@@ -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