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
21d5eadf
Commit
21d5eadf
authored
Jun 19, 2018
by
Kushal Pandya
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add tests for dropdown list type check
parent
481b2e91
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
39 additions
and
0 deletions
+39
-0
ee/spec/features/boards/boards_spec.rb
ee/spec/features/boards/boards_spec.rb
+39
-0
No files found.
ee/spec/features/boards/boards_spec.rb
View file @
21d5eadf
...
...
@@ -52,6 +52,45 @@ describe 'issue boards', :js do
end
end
context
'add list dropdown'
do
let
(
:group
)
{
create
(
:group
)
}
let
(
:project
)
{
create
(
:project
,
:public
,
namespace:
group
)
}
before
do
project
.
add_master
(
user
)
group
.
add_reporter
(
user
)
login_as
(
user
)
end
it
'shows tabbed dropdown with labels list and assignees list'
do
stub_licensed_features
(
board_assignee_lists:
true
)
visit_board_page
page
.
within
(
'#js-add-list'
)
do
page
.
find
(
'.js-new-board-list'
).
click
wait_for_requests
expect
(
page
).
to
have_css
(
'.dropdown-menu.dropdown-menu-tabs'
)
expect
(
page
).
to
have_css
(
'.js-tab-button-labels'
)
expect
(
page
).
to
have_css
(
'.js-tab-button-assignees'
)
end
end
it
'shows simple dropdown with only labels list'
do
stub_licensed_features
(
board_assignee_lists:
false
)
visit_board_page
page
.
within
(
'#js-add-list'
)
do
page
.
find
(
'.js-new-board-list'
).
click
wait_for_requests
expect
(
page
).
to
have_css
(
'.dropdown-menu.js-tab-container-labels'
)
expect
(
page
).
to
have_content
(
'Create lists from labels. Issues with that label appear in that list.'
)
expect
(
page
).
not_to
have_css
(
'.js-tab-button-assignees'
)
end
end
end
def
visit_board_page
visit
project_boards_path
(
project
)
wait_for_requests
...
...
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