summaryrefslogtreecommitdiff
path: root/spec/features
diff options
context:
space:
mode:
authorDouwe Maan <douwe@selenight.nl>2016-06-18 00:42:36 +0200
committerDouwe Maan <douwe@selenight.nl>2016-06-18 00:42:36 +0200
commitb218e82b5c8dca6bdf84e160f47145fdc458a40c (patch)
tree7ac79863e34ceeefe08f14babf6ca37bbde4455b /spec/features
parent5ef749b7ad940945340a726777a83f9098ed8791 (diff)
parent914f97310815365f083a38b02d8dbf6c99b63b5f (diff)
downloadgitlab-ce-b218e82b5c8dca6bdf84e160f47145fdc458a40c.tar.gz
Merge branch 'issuable-todo-improvements'
# Conflicts: # app/controllers/projects/todos_controller.rb
Diffstat (limited to 'spec/features')
-rw-r--r--spec/features/issues/todo_spec.rb10
1 files changed, 10 insertions, 0 deletions
diff --git a/spec/features/issues/todo_spec.rb b/spec/features/issues/todo_spec.rb
index b69cce3e7d7..bc0f437a8ce 100644
--- a/spec/features/issues/todo_spec.rb
+++ b/spec/features/issues/todo_spec.rb
@@ -20,6 +20,12 @@ feature 'Manually create a todo item from issue', feature: true, js: true do
page.within '.header-content .todos-pending-count' do
expect(page).to have_content '1'
end
+
+ visit namespace_project_issue_path(project.namespace, project, issue)
+
+ page.within '.header-content .todos-pending-count' do
+ expect(page).to have_content '1'
+ end
end
it 'should mark a todo as done' do
@@ -29,5 +35,9 @@ feature 'Manually create a todo item from issue', feature: true, js: true do
end
expect(page).to have_selector('.todos-pending-count', visible: false)
+
+ visit namespace_project_issue_path(project.namespace, project, issue)
+
+ expect(page).to have_selector('.todos-pending-count', visible: false)
end
end