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
dad55d88
Commit
dad55d88
authored
Dec 16, 2016
by
Bryce Johnson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix integration test selector for Unapprove button.
parent
b4d265cc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
spec/features/merge_requests/approvals_spec.rb
spec/features/merge_requests/approvals_spec.rb
+7
-7
No files found.
spec/features/merge_requests/approvals_spec.rb
View file @
dad55d88
...
...
@@ -170,13 +170,13 @@ feature 'Merge request approvals', js: true, feature: true do
it
'I am able to approve'
do
approve_merge_request
expect
(
page
).
to
have_content
(
"Approved by"
)
expect
(
page
).
to
have_content
(
'Approved by'
)
end
it
'I am able to unapprove'
do
it
'I am able to unapprove'
,
focus:
true
do
approve_merge_request
unapprove_merge_request
expect
(
page
).
not_to
have_content
(
"Approved by"
)
expect
(
page
).
not_to
have_content
(
'Approved by'
)
end
end
...
...
@@ -194,13 +194,13 @@ feature 'Merge request approvals', js: true, feature: true do
end
wait_for_ajax
expect
(
page
).
to
have_content
(
"Approved by"
)
expect
(
page
).
to
have_content
(
'Approved by'
)
end
it
'I am able to unapprove'
do
it
'I am able to unapprove'
,
focus:
true
do
approve_merge_request
unapprove_merge_request
expect
(
page
).
not_to
have_content
(
"Approved by"
)
expect
(
page
).
not_to
have_content
(
'Approved by'
)
end
end
end
...
...
@@ -215,7 +215,7 @@ end
def
unapprove_merge_request
page
.
within
'.mr-state-widget'
do
click_button
'Remove your approval'
find
(
'.unapprove-btn-wrap'
).
click
end
wait_for_ajax
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