[fix]Fix splashpage spec
This commit is contained in:
parent
4e68989955
commit
c7490dfe77
1 changed files with 2 additions and 1 deletions
|
|
@ -81,7 +81,7 @@ feature Splashpage do
|
|||
end
|
||||
end
|
||||
|
||||
context 'happening now section is turned on' do
|
||||
context 'happening now section', js: true do
|
||||
let!(:conference2) { create(:full_conference, start_date: 1.day.ago, end_date: 7.days.from_now, start_hour: 0, end_hour: 24) }
|
||||
let!(:program) { conference2.program }
|
||||
let!(:selected_schedule) { create(:schedule, program: program) }
|
||||
|
|
@ -159,6 +159,7 @@ feature Splashpage do
|
|||
expect(happening_now).not_to have_content(event_schedule4.event.title)
|
||||
|
||||
visit conference_path(conference2.short_title, page: 2)
|
||||
happening_now = page.find('#happening-now')
|
||||
expect(happening_now).to have_content(event_schedule4.event.title)
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue