Skip to content

Commit

Permalink
Add test of conference organizer adding a proposal
Browse files Browse the repository at this point in the history
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 openSUSE#2975
  • Loading branch information
AndrewKvalheim committed Mar 1, 2023
1 parent b68689d commit 0508367
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions spec/features/proposals_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down

0 comments on commit 0508367

Please sign in to comment.