* try to fix test again

This commit is contained in:
Seth Call 2014-12-31 12:34:17 -06:00
parent 2fc6edf579
commit d901c3a498
1 changed files with 4 additions and 1 deletions

View File

@ -146,7 +146,10 @@ describe "Create Session", :js => true, :type => :feature, :capybara_feature =>
find('li[create-type="start-scheduled"] ins').trigger(:click)
find('.btn-next').trigger(:click)
find('.btn-next').trigger(:click)
find('#btn-alert-ok').trigger(:click) # accept the 'If you start this session now, the scheduled start time...'
btn = first('#btn-alert-ok')# accept the 'If you start this session now, the scheduled start time...'
btn.trigger(:click) if btn
expect(page).to have_selector('h2', text: 'my tracks')
find('#session-screen .session-mytracks .session-track')
end