Fix file locking specs

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