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,
|
||||
)
|
||||
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
|
||||
modal_disappear(
|
||||
browser: instance,
|
||||
|
@ -4617,6 +4617,8 @@ wait untill text in selector disabppears
|
|||
return
|
||||
end
|
||||
|
||||
modal_disappear(browser: instance)
|
||||
|
||||
11.times do
|
||||
element = instance.find_elements(css: 'body')[0]
|
||||
text = element.text
|
||||
|
|
Loading…
Reference in a new issue