From 4a66692b30c46af447f302a62e38fb5e375521c5 Mon Sep 17 00:00:00 2001 From: Andrew Kvalheim Date: Mon, 12 Sep 2022 11:26:24 -0700 Subject: [PATCH] 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 --- spec/features/proposals_spec.rb | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/spec/features/proposals_spec.rb b/spec/features/proposals_spec.rb index 8ce8457754..a44f916ba3 100644 --- a/spec/features/proposals_spec.rb +++ b/spec/features/proposals_spec.rb @@ -27,6 +27,15 @@ 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'