Skip to content

Commit

Permalink
Improved auto wizard login.
Browse files Browse the repository at this point in the history
  • Loading branch information
martini committed Dec 31, 2015
1 parent 224f2e8 commit c238b14
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions test/browser_test_helper.rb
Expand Up @@ -142,6 +142,13 @@ def login(params)
if !element

if params[:auto_wizard]
watch_for(
browser: instance,
css: 'body',
value: 'auto wizard is enabled',
timeout: 10,
)
location( url: "#{browser_url}/#getting_started/auto_wizard" )
sleep 10
login = instance.find_elements({ css: '.user-menu .user a' })[0].attribute('title')
if login != params[:username]
Expand Down

0 comments on commit c238b14

Please sign in to comment.