BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
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
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
34 additions
and
0 deletions
+34
-0
CHANGELOG
CHANGELOG
+1
-0
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)
- 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
- 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)
- 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