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
f64f06f6
Commit
f64f06f6
authored
Aug 12, 2017
by
Stan Hu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Change trigger('click') calls to click
parent
1eade585
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
spec/features/issues/issue_sidebar_spec.rb
spec/features/issues/issue_sidebar_spec.rb
+4
-4
spec/features/merge_requests/form_spec.rb
spec/features/merge_requests/form_spec.rb
+1
-1
No files found.
spec/features/issues/issue_sidebar_spec.rb
View file @
f64f06f6
...
...
@@ -130,8 +130,8 @@ feature 'Issue Sidebar' do
it
'adds new label'
do
page
.
within
(
'.block.labels'
)
do
fill_in
'new_label_name'
,
with:
'wontfix'
page
.
find
(
'.suggest-colors a'
,
match: :first
).
trigger
(
'click'
)
page
.
find
(
'button'
,
text:
'Create'
).
trigger
(
'click'
)
page
.
find
(
'.suggest-colors a'
,
match: :first
).
click
page
.
find
(
'button'
,
text:
'Create'
).
click
page
.
within
(
'.dropdown-page-one'
)
do
expect
(
page
).
to
have_content
'wontfix'
...
...
@@ -142,8 +142,8 @@ feature 'Issue Sidebar' do
it
'shows error message if label title is taken'
do
page
.
within
(
'.block.labels'
)
do
fill_in
'new_label_name'
,
with:
label
.
title
page
.
find
(
'.suggest-colors a'
,
match: :first
).
trigger
(
'click'
)
page
.
find
(
'button'
,
text:
'Create'
).
trigger
(
'click'
)
page
.
find
(
'.suggest-colors a'
,
match: :first
).
click
page
.
find
(
'button'
,
text:
'Create'
).
click
page
.
within
(
'.dropdown-page-two'
)
do
expect
(
page
).
to
have_content
'Title has already been taken'
...
...
spec/features/merge_requests/form_spec.rb
View file @
f64f06f6
...
...
@@ -41,7 +41,7 @@ describe 'New/edit merge request', :js do
expect
(
page
).
to
have_content
user2
.
name
end
find
(
'a'
,
text:
'Assign to me'
).
trigger
(
'click'
)
find
(
'a'
,
text:
'Assign to me'
).
click
expect
(
find
(
'input[name="merge_request[assignee_id]"]'
,
visible:
false
).
value
).
to
match
(
user
.
id
.
to_s
)
page
.
within
'.js-assignee-search'
do
expect
(
page
).
to
have_content
user
.
name
...
...
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