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
09af9eec
Commit
09af9eec
authored
Nov 21, 2017
by
Clement Ho
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add spec for tasklist
parent
e9ea5785
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
1 deletion
+21
-1
spec/ee/spec/features/epics/update_epic_spec.rb
spec/ee/spec/features/epics/update_epic_spec.rb
+21
-1
No files found.
spec/ee/spec/features/epics/update_epic_spec.rb
View file @
09af9eec
...
...
@@ -3,7 +3,16 @@ require 'spec_helper'
feature
'Update Epic'
,
:js
do
let
(
:user
)
{
create
(
:user
)
}
let
(
:group
)
{
create
(
:group
,
:public
)
}
let
(
:epic
)
{
create
(
:epic
,
group:
group
)
}
let
(
:markdown
)
do
<<-
MARKDOWN
.
strip_heredoc
This is a task list:
- [ ] Incomplete entry 1
MARKDOWN
end
let
(
:epic
)
{
create
(
:epic
,
group:
group
,
description:
markdown
)
}
before
do
stub_licensed_features
(
epics:
true
)
...
...
@@ -20,6 +29,7 @@ feature 'Update Epic', :js do
end
context
'when user with developer access displays the epic'
do
before
do
group
.
add_developer
(
user
)
visit
group_epic_path
(
group
,
epic
)
...
...
@@ -36,5 +46,15 @@ feature 'Update Epic', :js do
expect
(
find
(
'.issuable-details h2.title'
)).
to
have_content
(
'New epic title'
)
expect
(
find
(
'.issuable-details .description'
)).
to
have_content
(
'New epic description'
)
end
it
'updates the tasklist'
do
expect
(
page
).
to
have_selector
(
'ul.task-list'
,
count:
1
)
expect
(
page
).
to
have_selector
(
'li.task-list-item'
,
count:
1
)
expect
(
page
).
to
have_selector
(
'ul input[checked]'
,
count:
0
)
find
(
'.task-list .task-list-item'
,
text:
'Incomplete entry 1'
).
find
(
'input'
).
click
expect
(
page
).
to
have_selector
(
'ul input[checked]'
,
count:
1
)
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