Improved modal_ready browser test helper to check for actual css class.
This commit is contained in:
parent
53db2cfc8e
commit
1795ffdb9e
1 changed files with 6 additions and 1 deletions
|
@ -552,7 +552,12 @@ class TestCase < Test::Unit::TestCase
|
||||||
log('modal_ready', params)
|
log('modal_ready', params)
|
||||||
|
|
||||||
instance = params[:browser] || @browser
|
instance = params[:browser] || @browser
|
||||||
sleep 3
|
|
||||||
|
watch_for(
|
||||||
|
browser: instance,
|
||||||
|
css: '.modal.in',
|
||||||
|
timeout: params[:timeout] || 4,
|
||||||
|
)
|
||||||
end
|
end
|
||||||
|
|
||||||
=begin
|
=begin
|
||||||
|
|
Loading…
Reference in a new issue