add spec
This commit is contained in:
@@ -223,6 +223,18 @@ feature 'User managing broadcasts' do
|
||||
expect(page).to have_content("Recording of the live stream will appear here")
|
||||
end
|
||||
|
||||
scenario 'Broadcast recording preview thumbnail is shown' do
|
||||
broadcast = create(:broadcast, :with_stream, :with_files, project: project)
|
||||
recording = create(:broadcast_recording, broadcast: broadcast, asset_uid: "another_asset_uid")
|
||||
|
||||
visit project_broadcast_path(project, broadcast)
|
||||
|
||||
click_on 'Previous Sessions'
|
||||
|
||||
expect(page).to have_css('img.img-thumbnail')
|
||||
expect(page.find('img.img-thumbnail')['src']).to match recording.asset_playback_uid
|
||||
end
|
||||
|
||||
context 'When the user is associate' do
|
||||
let(:current_user) { create(:user, :associate) }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user