mirror of
https://github.com/wahyd4/gitlabhq.git
synced 2026-08-23 11:36:09 +10:00
Update number of Todos in the sidebar when it's marked as "Done"
This commit is contained in:
@@ -9,7 +9,7 @@
|
||||
= icon('bell fw')
|
||||
%span
|
||||
Todos
|
||||
%span.count= number_with_delimiter(todos_pending_count)
|
||||
%span.count.todos-pending-count= number_with_delimiter(todos_pending_count)
|
||||
= nav_link(path: 'dashboard#activity') do
|
||||
= link_to activity_dashboard_path, class: 'shortcuts-activity', title: 'Activity' do
|
||||
= icon('dashboard fw')
|
||||
|
||||
@@ -26,6 +26,7 @@ class Spinach::Features::DashboardTodos < Spinach::FeatureSteps
|
||||
end
|
||||
|
||||
step 'I should see todos assigned to me' do
|
||||
page.within('.nav-sidebar') { expect(page).to have_content 'Todos 4' }
|
||||
expect(page).to have_content 'To do 4'
|
||||
expect(page).to have_content 'Done 0'
|
||||
|
||||
@@ -41,6 +42,7 @@ class Spinach::Features::DashboardTodos < Spinach::FeatureSteps
|
||||
click_link 'Done'
|
||||
end
|
||||
|
||||
page.within('.nav-sidebar') { expect(page).to have_content 'Todos 3' }
|
||||
expect(page).to have_content 'To do 3'
|
||||
expect(page).to have_content 'Done 1'
|
||||
should_not_see_todo "John Doe assigned you merge request !#{merge_request.iid}"
|
||||
|
||||
Reference in New Issue
Block a user