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