From 5097155e25eb2e2c24b4c006213a2ae1719f4571 Mon Sep 17 00:00:00 2001 From: coyaSONG <66289470+coyaSONG@users.noreply.github.com> Date: Fri, 17 Jul 2026 22:58:50 +0900 Subject: [PATCH] feat(work-view): show custom section task counts #9068 (#9109) --- e2e/tests/work-view/sections.spec.ts | 5 ++++- src/app/features/work-view/work-view.component.html | 4 +++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/e2e/tests/work-view/sections.spec.ts b/e2e/tests/work-view/sections.spec.ts index 32e07eafd3..db449b3319 100644 --- a/e2e/tests/work-view/sections.spec.ts +++ b/e2e/tests/work-view/sections.spec.ts @@ -304,7 +304,7 @@ test.describe('Sections', () => { await expect(sectionByTitle(page, 'Doomed')).toHaveCount(0); }); - test('drops a task into a section via drag and drop', async ({ + test('drops a task into a section and updates its task count', async ({ page, workViewPage, projectPage, @@ -322,6 +322,8 @@ test.describe('Sections', () => { const section = sectionByTitle(page, 'Target'); await expect(section).toBeVisible(); + const sectionTitle = section.locator('.collapsible-title'); + await expect(sectionTitle).toHaveText('Target (0)'); // The section's inner task-list is the drop target. const sectionTaskList = section.locator('task-list').first(); const noSectionTaskList = page.locator('.no-section task-list').first(); @@ -336,6 +338,7 @@ test.describe('Sections', () => { await expect(section.locator('task').filter({ hasText: 'Movable' })).toBeVisible({ timeout: 5000, }); + await expect(sectionTitle).toHaveText('Target (1)'); await expect( noSectionTaskList.locator('task').filter({ hasText: 'Movable' }), ).toHaveCount(0); diff --git a/src/app/features/work-view/work-view.component.html b/src/app/features/work-view/work-view.component.html index ebc6eabdf3..e64cbfe365 100644 --- a/src/app/features/work-view/work-view.component.html +++ b/src/app/features/work-view/work-view.component.html @@ -187,7 +187,9 @@ [cdkDragLockAxis]="'y'" >