Commit 81eabfea authored by Dan Davison's avatar Dan Davison Committed by Walmyr Lima e Silva Filho

Resolve "Dynamic Element Validation Iteration: Improve waiting"

parent 338b7238
......@@ -11,8 +11,7 @@ module QA
elements.each do |element|
next unless element.required?
# TODO: this wait needs to be replaced by the wait class
unless base_page.has_element?(element.name, wait: 60)
unless base_page.wait(reload: false) { base_page.has_element?(element.name, wait: 15) }
raise Validatable::PageValidationError, "#{element.name} did not appear on #{self.name} as expected"
end
end
......
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