Merge pull request #3103 from consul/backport-update_legislation_milestone_form

Edit only existing languages in milestones summary
This commit is contained in:
Javier Martín
2018-12-13 12:09:10 +01:00
committed by GitHub
4 changed files with 18 additions and 12 deletions

View File

@@ -192,6 +192,9 @@ feature 'Admin legislation processes' do
scenario "Edit milestones summary", :js do
visit admin_legislation_process_milestones_path(process)
expect(page).not_to have_link "Remove language"
expect(page).not_to have_field "translation_locale"
within(".translatable-fields[data-locale='en']") do
fill_in_ckeditor find("textarea", visible: false)[:id],
with: "There is still a long journey ahead of us"