From bd53601b56fe04a447f76b8446888c6b5f33ffcb Mon Sep 17 00:00:00 2001 From: Seth Call Date: Mon, 23 Jun 2014 23:03:04 -0500 Subject: [PATCH] * fix scheduled_session helper --- web/spec/features/create_session_flow_spec.rb | 2 ++ web/spec/support/utilities.rb | 4 +++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/web/spec/features/create_session_flow_spec.rb b/web/spec/features/create_session_flow_spec.rb index e486ff442..d722c1313 100644 --- a/web/spec/features/create_session_flow_spec.rb +++ b/web/spec/features/create_session_flow_spec.rb @@ -219,6 +219,8 @@ describe "Create Session Flow", :js => true, :type => :feature, :capybara_featur in_client(user1) do visit "/client#/createSession" + find('li[create-type="start-scheduled"] ins').trigger(:click) + find('.btn-next').trigger(:click) find('.btn-next').trigger(:click) diff --git a/web/spec/support/utilities.rb b/web/spec/support/utilities.rb index 08e3dba82..a3239bfe3 100644 --- a/web/spec/support/utilities.rb +++ b/web/spec/support/utilities.rb @@ -332,7 +332,9 @@ def schedule_session(options = {}) find('.btn-next', text: 'PUBLISH SESSION').trigger(:click) - find('div[type="createSession"]') + find('h2', text: 'create session') + + sleep 1 # to get rid of this, we need to verify that the URL is /client#/home.. otherwise intermittent fails end end