Improved auto wizard login.
This commit is contained in:
parent
224f2e8391
commit
c238b145dd
1 changed files with 7 additions and 0 deletions
|
@ -142,6 +142,13 @@ class TestCase < Test::Unit::TestCase
|
||||||
if !element
|
if !element
|
||||||
|
|
||||||
if params[:auto_wizard]
|
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
|
sleep 10
|
||||||
login = instance.find_elements({ css: '.user-menu .user a' })[0].attribute('title')
|
login = instance.find_elements({ css: '.user-menu .user a' })[0].attribute('title')
|
||||||
if login != params[:username]
|
if login != params[:username]
|
||||||
|
|
Loading…
Reference in a new issue