Fixed unstable tests: ObjectManager Attribute creation/migration fails on fast/slow systems.
This commit is contained in:
parent
18cec289b6
commit
2ad28ecfcc
1 changed files with 3 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue