Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhil Hughes <me@iamphill.com>2016-06-17 11:01:03 +0300
committerPhil Hughes <me@iamphill.com>2016-06-17 11:01:03 +0300
commit85fab13ebaf10982c0957daca0afd1ea145e64df (patch)
tree0515480dd7d509dca5e0a7e2b714b6e1bdf29573 /spec/features/issues
parentf011b86beb89557afdaf2b0ec5ae904d0be237d8 (diff)
Improved manual todos
Based on feedback from !4502
Diffstat (limited to 'spec/features/issues')
-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