Commit 4caba3eb authored by ddavison's avatar ddavison

Implement dynamic validation on QA Pages

Elements now have the ability to be required on pages or not
Currently using the default wait mechanism
Altered the ElementWithPattern Cop to fit new splat for init
parent 9c99f49a
...@@ -56,8 +56,11 @@ module QA ...@@ -56,8 +56,11 @@ module QA
elements elements
end end
def click_element(name) def click_element(name, page = nil)
log("clicking :#{name}") msg = ["clicking :#{name}"]
msg << ", expecting to be at #{page.class}" if page
log(msg.compact.join(' '))
super super
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