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
0c851012
Commit
0c851012
authored
Mar 12, 2018
by
Kushal Pandya
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update test for change in label dropdown action name
parent
338f5e2a
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
11 additions
and
11 deletions
+11
-11
spec/features/boards/boards_spec.rb
spec/features/boards/boards_spec.rb
+1
-1
spec/features/boards/sidebar_spec.rb
spec/features/boards/sidebar_spec.rb
+2
-2
spec/features/boards/sub_group_project_spec.rb
spec/features/boards/sub_group_project_spec.rb
+1
-1
spec/features/issues/form_spec.rb
spec/features/issues/form_spec.rb
+2
-2
spec/features/issues/issue_sidebar_spec.rb
spec/features/issues/issue_sidebar_spec.rb
+5
-5
No files found.
spec/features/boards/boards_spec.rb
View file @
0c851012
...
@@ -343,7 +343,7 @@ describe 'Issue Boards', :js do
...
@@ -343,7 +343,7 @@ describe 'Issue Boards', :js do
wait_for_requests
wait_for_requests
click_link
'Create
new
label'
click_link
'Create
project
label'
fill_in
(
'new_label_name'
,
with:
'Testing New Label'
)
fill_in
(
'new_label_name'
,
with:
'Testing New Label'
)
...
...
spec/features/boards/sidebar_spec.rb
View file @
0c851012
...
@@ -312,12 +312,12 @@ describe 'Issue Boards', :js do
...
@@ -312,12 +312,12 @@ describe 'Issue Boards', :js do
expect
(
card
).
not_to
have_content
(
stretch
.
title
)
expect
(
card
).
not_to
have_content
(
stretch
.
title
)
end
end
it
'creates
new
label'
do
it
'creates
project
label'
do
click_card
(
card
)
click_card
(
card
)
page
.
within
(
'.labels'
)
do
page
.
within
(
'.labels'
)
do
click_link
'Edit'
click_link
'Edit'
click_link
'Create
new
label'
click_link
'Create
project
label'
fill_in
'new_label_name'
,
with:
'test label'
fill_in
'new_label_name'
,
with:
'test label'
first
(
'.suggest-colors-dropdown a'
).
click
first
(
'.suggest-colors-dropdown a'
).
click
click_button
'Create'
click_button
'Create'
...
...
spec/features/boards/sub_group_project_spec.rb
View file @
0c851012
...
@@ -24,7 +24,7 @@ describe 'Sub-group project issue boards', :js do
...
@@ -24,7 +24,7 @@ describe 'Sub-group project issue boards', :js do
page
.
within
'.labels'
do
page
.
within
'.labels'
do
click_link
'Edit'
click_link
'Edit'
click_link
'Create
new
label'
click_link
'Create
project
label'
end
end
page
.
within
'.dropdown-new-label'
do
page
.
within
'.dropdown-new-label'
do
...
...
spec/features/issues/form_spec.rb
View file @
0c851012
...
@@ -306,10 +306,10 @@ describe 'New/edit issue', :js do
...
@@ -306,10 +306,10 @@ describe 'New/edit issue', :js do
visit
new_project_issue_path
(
sub_group_project
)
visit
new_project_issue_path
(
sub_group_project
)
end
end
it
'creates
new
label from dropdown'
do
it
'creates
project
label from dropdown'
do
click_button
'Labels'
click_button
'Labels'
click_link
'Create
new
label'
click_link
'Create
project
label'
page
.
within
'.dropdown-new-label'
do
page
.
within
'.dropdown-new-label'
do
fill_in
'new_label_name'
,
with:
'test label'
fill_in
'new_label_name'
,
with:
'test label'
...
...
spec/features/issues/issue_sidebar_spec.rb
View file @
0c851012
...
@@ -117,22 +117,22 @@ feature 'Issue Sidebar' do
...
@@ -117,22 +117,22 @@ feature 'Issue Sidebar' do
end
end
end
end
it
'shows option to create a
new
label'
do
it
'shows option to create a
project
label'
do
page
.
within
(
'.block.labels'
)
do
page
.
within
(
'.block.labels'
)
do
expect
(
page
).
to
have_content
'Create
new
'
expect
(
page
).
to
have_content
'Create
project
'
end
end
end
end
context
'creating a
new
label'
,
:js
do
context
'creating a
project
label'
,
:js
do
before
do
before
do
page
.
within
(
'.block.labels'
)
do
page
.
within
(
'.block.labels'
)
do
click_link
'Create
new
'
click_link
'Create
project
'
end
end
end
end
it
'shows dropdown switches to "create label" section'
do
it
'shows dropdown switches to "create label" section'
do
page
.
within
(
'.block.labels'
)
do
page
.
within
(
'.block.labels'
)
do
expect
(
page
).
to
have_content
'Create
new
label'
expect
(
page
).
to
have_content
'Create
project
label'
end
end
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