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
c2a8c804
Commit
c2a8c804
authored
Oct 08, 2019
by
Walmyr Lima
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add test that configures issue board by label
parent
3f1c57f2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
45 additions
and
0 deletions
+45
-0
qa/qa/specs/features/ee/browser_ui/2_plan/issue_boards/configure_issue_board_by_label_spec.rb
..._plan/issue_boards/configure_issue_board_by_label_spec.rb
+45
-0
No files found.
qa/qa/specs/features/ee/browser_ui/2_plan/issue_boards/configure_issue_board_by_label_spec.rb
0 → 100644
View file @
c2a8c804
# frozen_string_literal: true
module
QA
context
'Plan'
do
describe
'Configure issue board by label'
do
let
(
:label_board_list
)
do
EE
::
Resource
::
Board
::
BoardList
::
Project
::
LabelBoardList
.
fabricate_via_api!
end
let
(
:doing
)
{
'Doing'
}
let
(
:ready_for_dev
)
{
'Ready for development'
}
let
(
:issue_1
)
{
'Issue 1'
}
let
(
:issue_2
)
{
'Issue 2'
}
before
do
Runtime
::
Browser
.
visit
(
:gitlab
,
Page
::
Main
::
Login
)
Page
::
Main
::
Login
.
perform
(
&
:sign_in_using_credentials
)
fabricate_issue_with_label
(
label_board_list
.
project
,
issue_1
,
doing
)
fabricate_issue_with_label
(
label_board_list
.
project
,
issue_2
,
ready_for_dev
)
label_board_list
.
project
.
visit!
Page
::
Project
::
Menu
.
perform
(
&
:go_to_boards
)
end
it
'shows only issues that match the configured label'
do
EE
::
Page
::
Project
::
Issue
::
Board
::
Show
.
perform
do
|
show
|
show
.
configure_by_label
(
doing
)
expect
(
show
).
not_to
have_content
(
issue_2
)
expect
(
show
.
boards_list_cards_area_with_index
(
1
)).
to
have_content
(
issue_1
)
end
end
def
fabricate_issue_with_label
(
project
,
title
,
label
)
Resource
::
Issue
.
fabricate_via_api!
do
|
issue
|
issue
.
project
=
project
issue
.
title
=
title
issue
.
labels
=
[
label
]
end
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