diff options
author | Phil Hughes <me@iamphill.com> | 2016-06-17 09:01:03 +0100 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2016-06-17 09:01:03 +0100 |
commit | 85fab13ebaf10982c0957daca0afd1ea145e64df (patch) | |
tree | 0515480dd7d509dca5e0a7e2b714b6e1bdf29573 /spec/features/issues/todo_spec.rb | |
parent | f011b86beb89557afdaf2b0ec5ae904d0be237d8 (diff) | |
download | gitlab-ce-85fab13ebaf10982c0957daca0afd1ea145e64df.tar.gz |
Improved manual todos
Based on feedback from !4502
Diffstat (limited to 'spec/features/issues/todo_spec.rb')
-rw-r--r-- | spec/features/issues/todo_spec.rb | 10 |
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 |