Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
868bb096
Commit
868bb096
authored
Mar 11, 2021
by
Sanad Liaquat (Personal)
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix file locking specs
parent
639adaf7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
4 deletions
+8
-4
qa/qa/ee/page/file/show.rb
qa/qa/ee/page/file/show.rb
+8
-4
No files found.
qa/qa/ee/page/file/show.rb
View file @
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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment