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:
Andrew Kvalheim 2022-09-12 11:26:24 -07:00
parent 694f397857
commit 9f72c5b75b

View file

@ -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'