[QA] Wait for CSS class to be present instead of trying to find the element

Signed-off-by: Rémy Coutable <remy@rymai.me>
This commit is contained in:
Rémy Coutable 2018-07-03 17:19:39 +02:00
parent d4a4f1ed63
commit 2aa8d8866a
No known key found for this signature in database
GPG key ID: 98DFFD1C0C62B70B

View file

@ -58,7 +58,7 @@ module QA
def within_project_deploy_keys def within_project_deploy_keys
wait(reload: false) do wait(reload: false) do
find_element(:project_deploy_keys) has_css?(element_selector_css(:project_deploy_keys))
end end
within_element(:project_deploy_keys) do within_element(:project_deploy_keys) do