Update legislation process translatable fields

This commit is contained in:
Javi Martín
2018-10-09 22:04:53 +02:00
parent 6278175f57
commit 5bfc7ca2e3
6 changed files with 44 additions and 38 deletions

View File

@@ -43,9 +43,9 @@ feature 'Admin legislation processes' do
click_link "New process"
fill_in 'legislation_process_title_en', with: 'An example legislation process'
fill_in 'legislation_process_summary_en', with: 'Summary of the process'
fill_in 'legislation_process_description_en', with: 'Describing the process'
fill_in 'Process Title', with: 'An example legislation process'
fill_in 'Summary', with: 'Summary of the process'
fill_in 'Description', with: 'Describing the process'
base_date = Date.current
fill_in 'legislation_process[start_date]', with: base_date.strftime("%d/%m/%Y")
@@ -98,7 +98,7 @@ feature 'Admin legislation processes' do
expect(find("#legislation_process_debate_phase_enabled")).to be_checked
expect(find("#legislation_process_published")).to be_checked
fill_in 'legislation_process_summary_en', with: ''
fill_in 'Summary', with: ''
click_button "Save changes"
expect(page).to have_content "Process updated successfully"