Integrate admin html and css from sandbox

This commit is contained in:
Amaia Castro
2016-12-29 19:39:06 +01:00
parent 8c5b4d8c74
commit 0cd2b62e2c
19 changed files with 320 additions and 186 deletions

View File

@@ -57,7 +57,9 @@ feature 'Admin legislation draft versions' do
fill_in 'legislation_draft_version_changelog', with: 'Version 3 changes'
fill_in 'legislation_draft_version_body', with: 'Version 3 body'
click_button 'Create version'
within('.primary-buttons') do
click_button 'Create version'
end
expect(page).to have_content 'An example legislation process'
expect(page).to have_content 'Version 3'

View File

@@ -44,15 +44,15 @@ feature 'Admin legislation processes' do
fill_in 'legislation_process_how_to_participate', with: 'You can partipate in this thing by doing...'
base_date = Date.current
fill_in 'start_date', with: base_date.strftime("%d/%m/%Y")
fill_in 'end_date', with: (base_date + 5.days).strftime("%d/%m/%Y")
fill_in 'legislation_process[start_date]', with: base_date.strftime("%d/%m/%Y")
fill_in 'legislation_process[end_date]', with: (base_date + 5.days).strftime("%d/%m/%Y")
fill_in 'debate_start_date', with: base_date.strftime("%d/%m/%Y")
fill_in 'debate_end_date', with: (base_date + 2.days).strftime("%d/%m/%Y")
fill_in 'draft_publication_date', with: (base_date + 3.days).strftime("%d/%m/%Y")
fill_in 'allegations_start_date', with: (base_date + 3.days).strftime("%d/%m/%Y")
fill_in 'allegations_end_date', with: (base_date + 5.days).strftime("%d/%m/%Y")
fill_in 'final_publication_date', with: (base_date + 7.days).strftime("%d/%m/%Y")
fill_in 'legislation_process[debate_start_date]', with: base_date.strftime("%d/%m/%Y")
fill_in 'legislation_process[debate_end_date]', with: (base_date + 2.days).strftime("%d/%m/%Y")
fill_in 'legislation_process[draft_publication_date]', with: (base_date + 3.days).strftime("%d/%m/%Y")
fill_in 'legislation_process[allegations_start_date]', with: (base_date + 3.days).strftime("%d/%m/%Y")
fill_in 'legislation_process[allegations_end_date]', with: (base_date + 5.days).strftime("%d/%m/%Y")
fill_in 'legislation_process[final_publication_date]', with: (base_date + 7.days).strftime("%d/%m/%Y")
click_button 'Create process'