Fixed unstable tests: ObjectManager Attribute creation/migration fails on fast/slow systems.

This commit is contained in:
Thorsten Eckel 2018-10-15 15:43:16 +02:00
parent 18cec289b6
commit 2ad28ecfcc

View file

@ -4243,7 +4243,7 @@ wait untill text in selector disabppears
browser: instance, browser: instance,
) )
title_text = instance.find_elements(css: '.modal .modal-title').first.text title_text = instance.find_elements(css: '.modal .modal-title').first.text
if title_text == 'Zammad is restarting...' if ['Zammad is restarting...', 'Zammad need a restart!'].include?(title_text)
# in the complex case, wait for server to restart # in the complex case, wait for server to restart
modal_disappear( modal_disappear(
browser: instance, browser: instance,
@ -4617,6 +4617,8 @@ wait untill text in selector disabppears
return return
end end
modal_disappear(browser: instance)
11.times do 11.times do
element = instance.find_elements(css: 'body')[0] element = instance.find_elements(css: 'body')[0]
text = element.text text = element.text