Improved error handling.
This commit is contained in:
parent
b8d1972936
commit
d2573d0654
2 changed files with 7 additions and 2 deletions
|
@ -107,8 +107,10 @@ class AutoWizard extends App.WizardFullScreen
|
||||||
return
|
return
|
||||||
|
|
||||||
# login check / get session user
|
# login check / get session user
|
||||||
|
delay = =>
|
||||||
App.Auth.loginCheck()
|
App.Auth.loginCheck()
|
||||||
@navigate '#'
|
@navigate '#'
|
||||||
|
@delay(delay, 800)
|
||||||
return
|
return
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -151,6 +151,9 @@ class TestCase < Test::Unit::TestCase
|
||||||
instance.get(params[:url])
|
instance.get(params[:url])
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# submit logs anyway
|
||||||
|
instance.execute_script('App.Track.force()')
|
||||||
|
|
||||||
element = instance.find_elements(css: '#login input[name="username"]')[0]
|
element = instance.find_elements(css: '#login input[name="username"]')[0]
|
||||||
if !element
|
if !element
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue