diff --git a/src/api/test/functional/webui/package_controller_test.rb b/src/api/test/functional/webui/package_controller_test.rb index cdd50fd3754..d7c3e16753c 100644 --- a/src/api/test/functional/webui/package_controller_test.rb +++ b/src/api/test/functional/webui/package_controller_test.rb @@ -196,7 +196,7 @@ def fill_comment(body = 'Comment Body') while Time.now - starttime < 10 first('.icons-reload').click if page.has_selector? '.buildstatus' - break if find('.buildstatus').text == 'succeeded' + break if first('.buildstatus').text == 'succeeded' end end find('.buildstatus').must_have_text 'succeeded'