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
0
Merge Requests
0
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
iv
gitlab-ce
Commits
a1be3241
Commit
a1be3241
authored
Jun 07, 2016
by
Phil Hughes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Todo tests and CHANGELOG
parent
05525b55
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
34 additions
and
0 deletions
+34
-0
CHANGELOG
CHANGELOG
+1
-0
spec/features/issues/todo_spec.rb
spec/features/issues/todo_spec.rb
+33
-0
No files found.
CHANGELOG
View file @
a1be3241
...
@@ -73,6 +73,7 @@ v 8.9.0 (unreleased)
...
@@ -73,6 +73,7 @@ v 8.9.0 (unreleased)
- Put project Labels and Milestones pages links under Issues and Merge Requests tabs as subnav
- Put project Labels and Milestones pages links under Issues and Merge Requests tabs as subnav
- All classes in the Banzai::ReferenceParser namespace are now instrumented
- All classes in the Banzai::ReferenceParser namespace are now instrumented
- Remove deprecated issues_tracker and issues_tracker_id from project model
- Remove deprecated issues_tracker and issues_tracker_id from project model
- Manually mark a issue or merge request as a todo
v 8.8.5 (unreleased)
v 8.8.5 (unreleased)
- Ensure branch cleanup regardless of whether the GitHub import process succeeds
- Ensure branch cleanup regardless of whether the GitHub import process succeeds
...
...
spec/features/issues/todo_spec.rb
0 → 100644
View file @
a1be3241
require
'rails_helper'
feature
'Manually create a todo item from issue'
,
feature:
true
,
js:
true
do
let!
(
:project
)
{
create
(
:project
)
}
let!
(
:issue
)
{
create
(
:issue
,
project:
project
)
}
let!
(
:user
)
{
create
(
:user
)}
before
do
project
.
team
<<
[
user
,
:master
]
login_as
(
user
)
visit
namespace_project_issue_path
(
project
.
namespace
,
project
,
issue
)
end
it
'should create todo when clicking button'
do
page
.
within
'.issuable-sidebar'
do
click_button
'Add Todo'
expect
(
page
).
to
have_content
'Mark Done'
end
page
.
within
'.header-content .todos-pending-count'
do
expect
(
page
).
to
have_content
'1'
end
end
it
'should mark a todo as done'
do
page
.
within
'.issuable-sidebar'
do
click_button
'Add Todo'
click_button
'Mark Done'
end
expect
(
page
).
to
have_selector
(
'.todos-pending-count'
,
visible:
false
)
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