Fix file locking specs

parent 639adaf7
...@@ -24,22 +24,26 @@ module QA ...@@ -24,22 +24,26 @@ module QA
end end
def lock def lock
click_element :lock_button accept_confirm do
click_element :lock_button
end
begin begin
has_element? :lock_button, text: 'Unlock' has_element? :lock_button, text: 'Unlock'
rescue rescue
raise ElementNotFound, %q(Button did not show expected state) raise QA::Page::Base::ElementNotFound, %q(Button did not show expected state)
end end
end end
def unlock def unlock
click_element :lock_button accept_confirm do
click_element :lock_button
end
begin begin
has_element? :lock_button, text: 'Lock' has_element? :lock_button, text: 'Lock'
rescue rescue
raise ElementNotFound, %q(Button did not show expected state) raise QA::Page::Base::ElementNotFound, %q(Button did not show expected state)
end end
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