Merge pull request #74 from CactusPuppy/176894823-Cleanup-Page-Title-on-Conference-Materials-Page

176894823 cleanup page title on conference materials page
This commit is contained in:
Rajavi Mishra 2021-04-29 13:30:42 -07:00 committed by GitHub
commit b323018d43
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 3 deletions

View file

@ -1,7 +1,7 @@
.row
.col-md-12
.page-header
%h1 Session Materials
%h1 #{@conference.title} Materials
%p.text-muted
Conference materials will be displayed on the events in the
= link_to 'schedule,', conference_schedule_path(@conference.short_title)

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'