Commit 5e170ccc authored by Andrejs Cunskis's avatar Andrejs Cunskis

Merge branch 'ml-fix-has-element-predicate-method' into 'master'

Return false from predicate instead of raising

See merge request gitlab-org/gitlab!84554
parents 8baad1ca 57d15e87
......@@ -247,6 +247,8 @@ module QA
else
find_element(name, **original_kwargs).disabled? == disabled
end
rescue Capybara::ElementNotFound
false
end
# Check for the element before waiting for requests, just in case unrelated requests are in progress.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment