fix spec
This commit is contained in:
@@ -91,27 +91,24 @@ feature 'User managing broadcasts' do
|
||||
BroadcastsChannel.broadcast_stream_updates(broadcast)
|
||||
|
||||
expect(page).to have_content stream_begun_message
|
||||
expect(page).not_to have_css('div#broadcast_video[video-type="stream"]')
|
||||
|
||||
broadcast.streamer_status = :idle
|
||||
broadcast.status = :idle
|
||||
BroadcastsChannel.broadcast_stream_updates(broadcast)
|
||||
|
||||
expect(page).to have_content stream_idle_message
|
||||
|
||||
click_on switch_view_dropdown
|
||||
click_on recording.download_file_name
|
||||
|
||||
player = find('#broadcast_video', visible: :all)
|
||||
player_html_for_recording = player.native.attribute('outerHTML').clone
|
||||
expect(page).to have_content stream_idle_message
|
||||
expect(page).to have_css('div#broadcast_video[video-type="recording"]')
|
||||
|
||||
broadcast.streamer_status = :recording
|
||||
broadcast.status = :active
|
||||
BroadcastsChannel.broadcast_stream_updates(broadcast)
|
||||
|
||||
expect(page).to have_content stream_begun_message
|
||||
|
||||
player_html_after_stream_starts = player.native.attribute('outerHTML')
|
||||
expect(player_html_after_stream_starts).to eq player_html_for_recording
|
||||
expect(page).to have_css('div#broadcast_video[video-type="recording"]')
|
||||
end
|
||||
|
||||
scenario 'user can go back and forth between live session and previous sessions', js: true do
|
||||
|
||||
Reference in New Issue
Block a user