Add test of conference organizer adding a proposal
Fails with:
1) Event as an conference organizer create a proposal
Failure/Error: raise ActionController::MissingExactTemplate, message
ActionController::MissingExactTemplate:
Admin::EventsController#new is missing a template for request formats: text/html
re #2975
This commit is contained in:
parent
694f397857
commit
9f72c5b75b
1 changed files with 9 additions and 0 deletions
|
|
@ -27,6 +27,15 @@ feature Event do
|
||||||
sign_in organizer
|
sign_in organizer
|
||||||
end
|
end
|
||||||
|
|
||||||
|
scenario 'adds a proposal', feature: true, js: true do
|
||||||
|
visit admin_conference_program_events_path(conference.short_title)
|
||||||
|
click_on 'Add Event'
|
||||||
|
fill_in 'Title', with: 'Organizer-Created Proposal'
|
||||||
|
fill_in 'Abstract', with: 'This proposal was created by an organizer.'
|
||||||
|
click_button 'Create Proposal'
|
||||||
|
expect(flash).to eq('Event was successfully submitted.')
|
||||||
|
end
|
||||||
|
|
||||||
scenario 'rejects a proposal', feature: true, js: true do
|
scenario 'rejects a proposal', feature: true, js: true do
|
||||||
visit admin_conference_program_events_path(conference.short_title)
|
visit admin_conference_program_events_path(conference.short_title)
|
||||||
expect(page).to have_content 'Example Proposal'
|
expect(page).to have_content 'Example Proposal'
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue