Commit e6a9a479 authored by Sanad Liaquat's avatar Sanad Liaquat

Merge branch 'qa-shl-fix-file-locking-spec' into 'master'

Fix file locking e2e tests

See merge request gitlab-org/gitlab!56307
parents 30b23ace 868bb096
......@@ -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