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
efa7a51f
Commit
efa7a51f
authored
Oct 14, 2019
by
Walmyr Lima
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add test that deletes group board via GUI
parent
b8a3dfeb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
47 additions
and
0 deletions
+47
-0
qa/qa/specs/features/ee/browser_ui/2_plan/issue_boards/delete_group_board_spec.rb
...browser_ui/2_plan/issue_boards/delete_group_board_spec.rb
+47
-0
No files found.
qa/qa/specs/features/ee/browser_ui/2_plan/issue_boards/delete_group_board_spec.rb
0 → 100644
View file @
efa7a51f
# frozen_string_literal: true
require
'securerandom'
module
QA
context
'Plan'
do
describe
'Group issue boards'
do
let
(
:board_1
)
{
"Board-1-
#{
SecureRandom
.
hex
(
4
)
}
"
}
let
(
:board_2
)
{
"Board-2-
#{
SecureRandom
.
hex
(
4
)
}
"
}
let
(
:group
)
do
QA
::
Resource
::
Group
.
fabricate_via_api!
end
before
do
Runtime
::
Browser
.
visit
(
:gitlab
,
Page
::
Main
::
Login
)
Page
::
Main
::
Login
.
perform
(
&
:sign_in_using_credentials
)
create_group_board
(
board_1
)
create_group_board
(
board_2
)
Page
::
Main
::
Menu
.
perform
(
&
:go_to_groups
)
Page
::
Dashboard
::
Groups
.
perform
do
|
groups
|
groups
.
click_group
(
group
.
path
)
end
Page
::
Group
::
Menu
.
perform
(
&
:go_to_issue_boards
)
end
it
'deletes a group issue board via the GUI'
do
EE
::
Page
::
Component
::
IssueBoard
::
Show
.
perform
do
|
show
|
show
.
delete_current_board
show
.
click_boards_dropdown_button
expect
(
show
.
boards_dropdown_content
).
not_to
have_content
(
board_1
)
expect
(
show
.
boards_dropdown_content
).
to
have_content
(
board_2
)
end
end
def
create_group_board
(
name
)
QA
::
EE
::
Resource
::
Board
::
GroupBoard
.
fabricate_via_api!
do
|
group_board
|
group_board
.
group
=
group
group_board
.
name
=
name
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