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
0
Merge Requests
0
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
Boxiang Sun
gitlab-ce
Commits
3ac444b8
Commit
3ac444b8
authored
Oct 11, 2017
by
Jose Ivan Vargas
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix trigger elements and element is not clickable at this position
parent
59bb5bc5
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
11 deletions
+13
-11
spec/features/projects/merge_requests/user_comments_on_diff_spec.rb
...res/projects/merge_requests/user_comments_on_diff_spec.rb
+7
-5
spec/features/protected_branches_spec.rb
spec/features/protected_branches_spec.rb
+4
-4
spec/support/shared_examples/features/protected_branches_access_control_ce.rb
...examples/features/protected_branches_access_control_ce.rb
+2
-2
No files found.
spec/features/projects/merge_requests/user_comments_on_diff_spec.rb
View file @
3ac444b8
...
...
@@ -31,7 +31,7 @@ describe 'User comments on a diff', :js do
page
.
within
(
'.files > div:nth-child(3)'
)
do
expect
(
page
).
to
have_content
(
'Line is wrong'
)
find
(
'.js-toggle-diff-comments'
).
trigger
(
'click'
)
find
(
'.js-toggle-diff-comments'
).
click
expect
(
page
).
not_to
have_content
(
'Line is wrong'
)
end
...
...
@@ -64,7 +64,7 @@ describe 'User comments on a diff', :js do
# Hide the comment.
page
.
within
(
'.files > div:nth-child(3)'
)
do
find
(
'.js-toggle-diff-comments'
).
trigger
(
'click'
)
find
(
'.js-toggle-diff-comments'
).
click
expect
(
page
).
not_to
have_content
(
'Line is wrong'
)
end
...
...
@@ -77,7 +77,7 @@ describe 'User comments on a diff', :js do
# Show the comment.
page
.
within
(
'.files > div:nth-child(3)'
)
do
find
(
'.js-toggle-diff-comments'
).
trigger
(
'click'
)
find
(
'.js-toggle-diff-comments'
).
click
end
# Now both the comments should be shown.
...
...
@@ -90,7 +90,9 @@ describe 'User comments on a diff', :js do
end
# Check the same comments in the side-by-side view.
click_link
(
'Side-by-side'
)
page
.
execute_script
(
"document.querySelector('#parallel-diff-btn').click()"
)
wait_for_requests
...
...
@@ -157,7 +159,7 @@ describe 'User comments on a diff', :js do
end
page
.
within
(
'.merge-request-tabs'
)
do
find
(
'.notes-tab'
).
trigger
(
'click'
)
find
(
'.notes-tab'
).
click
end
wait_for_requests
...
...
spec/features/protected_branches_spec.rb
View file @
3ac444b8
...
...
@@ -48,7 +48,7 @@ feature 'Protected Branches', :js do
expect
(
page
).
to
have_content
(
'fix'
)
expect
(
find
(
'.all-branches'
)).
to
have_selector
(
'li'
,
count:
1
)
page
.
find
(
'[data-target="#modal-delete-branch"]'
).
trigger
(
:click
)
page
.
find
(
'[data-target="#modal-delete-branch"]'
).
click
expect
(
page
).
to
have_css
(
'.js-delete-branch[disabled]'
)
fill_in
'delete_branch_input'
,
with:
'fix'
...
...
@@ -67,9 +67,9 @@ feature 'Protected Branches', :js do
form
=
'.js-new-protected-branch'
within
form
do
find
(
".js-allowed-to-merge"
).
trigger
(
'click'
)
find
(
".js-allowed-to-merge"
).
click
click_link
'No one'
find
(
".js-allowed-to-push"
).
trigger
(
'click'
)
find
(
".js-allowed-to-push"
).
click
click_link
'Developers + Masters'
end
...
...
@@ -171,7 +171,7 @@ feature 'Protected Branches', :js do
end
def
set_protected_branch_name
(
branch_name
)
find
(
".js-protected-branch-select"
).
trigger
(
'click'
)
find
(
".js-protected-branch-select"
).
click
find
(
".dropdown-input-field"
).
set
(
branch_name
)
click_on
(
"Create wildcard
#{
branch_name
}
"
)
end
...
...
spec/support/shared_examples/features/protected_branches_access_control_ce.rb
View file @
3ac444b8
...
...
@@ -34,7 +34,7 @@ shared_examples "protected branches > access control > CE" do
within
(
'.js-allowed-to-push-container'
)
do
expect
(
first
(
"li"
)).
to
have_content
(
"Roles"
)
click_on
access_type_name
find
(
:link
,
access_type_name
).
click
end
end
...
...
@@ -79,7 +79,7 @@ shared_examples "protected branches > access control > CE" do
within
(
'.js-allowed-to-merge-container'
)
do
expect
(
first
(
"li"
)).
to
have_content
(
"Roles"
)
click_on
access_type_name
find
(
:link
,
access_type_name
).
click
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