This commit is contained in:
rajavi-mishra 2021-04-24 22:33:59 -07:00 committed by CactusPuppy
parent 6f91b4de05
commit db30c8de1b
No known key found for this signature in database
GPG key ID: 4B33B0A3E15E2C82

View file

@ -10,11 +10,18 @@ feature Commercial do
let!(:participant) { create(:user) }
context 'in admin area' do
scenario 'adds, updates, deletes of a conference', feature: true, js: true do
before do
sign_in organizer
visit admin_conference_commercials_path(conference.short_title)
end
scenario 'contains the conference name in the title', feature: true, js: true do
header = conference.title + " Materials"
expect(page).to have_content(header)
end
scenario 'adds, updates, deletes of a conference', feature: true, js: true do
# Create valid commercial
fill_in 'commercial_url', with: 'https://www.youtube.com/watch?v=M9bq_alk-sw'
click_button 'Save Materials'