Integrate admin html and css from sandbox
This commit is contained in:
@@ -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'
|
||||
|
||||
@@ -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'
|
||||
|
||||
|
||||
Reference in New Issue
Block a user