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
df6c0473
Commit
df6c0473
authored
Aug 15, 2019
by
Walmyr Lima
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Create tests for multiple issue boards
parent
9604e574
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
65 additions
and
0 deletions
+65
-0
qa/qa/specs/features/ee/browser_ui/2_plan/issue_boards/issue_boards_spec.rb
...es/ee/browser_ui/2_plan/issue_boards/issue_boards_spec.rb
+65
-0
No files found.
qa/qa/specs/features/ee/browser_ui/2_plan/issue_boards/issue_boards_spec.rb
0 → 100644
View file @
df6c0473
# frozen_string_literal: true
module
QA
context
'Plan'
do
describe
'Issue boards'
do
let
(
:issue_title
)
{
'Issue to test board list'
}
before
do
Runtime
::
Browser
.
visit
(
:gitlab
,
Page
::
Main
::
Login
)
Page
::
Main
::
Login
.
perform
(
&
:sign_in_using_credentials
)
end
context
'Label issue board'
do
let
(
:label
)
{
'Doing'
}
let
(
:label_board_list
)
do
EE
::
Resource
::
LabelBoardList
.
fabricate_via_api!
end
before
do
Resource
::
Issue
.
fabricate_via_api!
do
|
issue
|
issue
.
project
=
label_board_list
.
project
issue
.
title
=
issue_title
issue
.
labels
=
[
label
]
end
end
it
'shows the just created board with a "Doing" (label) list, and an issue on it'
do
page
.
visit
(
"
#{
label_board_list
.
project
.
web_url
}
/-/boards"
)
EE
::
Page
::
Project
::
Issue
::
Board
::
Show
.
perform
do
|
show
|
expect
(
show
.
boards_dropdown
).
to
have_content
(
label_board_list
.
board
.
name
)
expect
(
show
.
boards_list_header_with_index
(
1
)).
to
have_content
(
label
)
expect
(
show
.
boards_list_cards_area_with_index
(
1
)).
to
have_content
(
label
)
expect
(
show
.
card_of_list_with_index
(
1
)).
to
have_content
(
issue_title
)
end
end
end
context
'Milestone issue board'
do
let
(
:milestone_board_list
)
do
EE
::
Resource
::
MilestoneBoardList
.
fabricate_via_api!
end
before
do
Resource
::
Issue
.
fabricate_via_api!
do
|
issue
|
issue
.
project
=
milestone_board_list
.
project
issue
.
title
=
issue_title
issue
.
milestone
=
milestone_board_list
.
project_milestone
end
end
it
'shows the just created board with a "1.0" (milestone) list, and an issue on it'
do
page
.
visit
(
"
#{
milestone_board_list
.
project
.
web_url
}
/-/boards"
)
EE
::
Page
::
Project
::
Issue
::
Board
::
Show
.
perform
do
|
show
|
expect
(
show
.
boards_dropdown
).
to
have_content
(
milestone_board_list
.
board
.
name
)
expect
(
show
.
boards_list_header_with_index
(
1
)).
to
have_content
(
'1.0'
)
expect
(
show
.
card_of_list_with_index
(
1
)).
to
have_content
(
issue_title
)
end
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