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
fcdb5a72
Commit
fcdb5a72
authored
Dec 20, 2017
by
Clement Ho
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add feature spec
parent
eefcb9ab
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
0 deletions
+16
-0
spec/ee/spec/features/epics/epic_issues_spec.rb
spec/ee/spec/features/epics/epic_issues_spec.rb
+16
-0
No files found.
spec/ee/spec/features/epics/epic_issues_spec.rb
View file @
fcdb5a72
require
'spec_helper'
describe
'Epic Issues'
,
:js
do
include
DragTo
let
(
:user
)
{
create
(
:user
)
}
let
(
:group
)
{
create
(
:group
,
:public
)
}
let
(
:epic
)
{
create
(
:epic
,
group:
group
)
}
...
...
@@ -40,6 +42,10 @@ describe 'Epic Issues', :js do
it
'user cannot add new issues to the epic'
do
expect
(
page
).
not_to
have_selector
(
'.related-issues-block h3.panel-title button'
)
end
it
'user cannot reorder issues in epic'
do
expect
(
page
).
not_to
have_selector
(
'.js-related-issues-token-list-item.user-can-drag'
)
end
end
context
'when user is a group member'
do
...
...
@@ -95,5 +101,15 @@ describe 'Epic Issues', :js do
expect
(
page
).
to
have_content
(
issue_to_add
.
title
)
end
end
it
'user can reorder issues in epic'
do
expect
(
first
(
'.js-related-issues-token-list-item'
)).
to
have_content
(
public_issue
.
title
)
expect
(
page
.
all
(
'.js-related-issues-token-list-item'
).
last
).
to
have_content
(
private_issue
.
title
)
drag_to
(
selector:
'.issuable-list'
,
to_index:
1
)
expect
(
first
(
'.js-related-issues-token-list-item'
)).
to
have_content
(
private_issue
.
title
)
expect
(
page
.
all
(
'.js-related-issues-token-list-item'
).
last
).
to
have_content
(
public_issue
.
title
)
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