Upstream sync

This commit is contained in:
Senad Uka
2020-07-21 13:12:27 +00:00
parent 40f241b75f
commit 2590b6bdc9
13 changed files with 32 additions and 11257 deletions

View File

@@ -24,10 +24,12 @@ feature 'User managing broadcasts' do
by 'filling out the form' do
fill_in broadcast_name_field, with: 'My Broadcast'
select_time_zone("New Delhi")
end
click_button 'Create Live Stream'
expect(page).to have_content('A live stream has been created')
expect(page).to have_content('New Delhi')
click_on 'Manage'
expect(page).to have_link('Copy Stream URL', exact: true)
expect(page).to have_link('Copy Stream Key', exact: true)
@@ -220,6 +222,12 @@ feature 'User managing broadcasts' do
def broadcast_name_field
'broadcast[name]'
end
def select_time_zone(value)
if value.present?
select value, from: "broadcast[shoot_location_time_zone]"
end
end
def click_checkboxes
all('input[type="checkbox"]')[0].click