This commit is contained in:
Bilal
2020-08-25 11:33:49 +03:00
parent 6bd0439471
commit 7c828b4cd2

View File

@@ -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) }