Improved modal_ready browser test helper to check for actual css class.

This commit is contained in:
Thorsten Eckel 2018-07-24 18:06:09 +02:00
parent 53db2cfc8e
commit 1795ffdb9e

View file

@ -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