Upstream sync
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user