mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-13 19:54:02 +00:00
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
|
||||
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
|
||||
visit admin_conference_program_events_path(conference.short_title)
|
||||
expect(page).to have_content 'Example Proposal'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue