fix(ui): Feeds count not showing up in PipelineDetails page. (#21339)

* fix pipeline feeds count update

* minor update

* added test
This commit is contained in:
Shrushti Polekar 2025-05-21 19:52:43 +05:30 committed by GitHub
parent 04bfb7b85d
commit d5d9a146af
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 17 additions and 1 deletions

View File

@ -578,6 +578,18 @@ test.describe('Activity feed', () => {
await afterActionUser2();
});
});
test('Verify feed count', async ({ page }) => {
await redirectToHomePage(page);
await entity.visitEntityPage(page);
await page.getByTestId('request-description').click();
await createDescriptionTask(page, {
term: entity.entity.displayName,
assignee: user1.responseData.name,
});
await expect(page.getByTestId('left-panel-task-count')).toHaveText('1');
});
});
base.describe('Activity feed with Data Consumer User', () => {

View File

@ -558,7 +558,7 @@ export const ActivityFeedTab = ({
/>
<span>{t('label.task-plural')}</span>
</Space>
<span>
<span data-testid="left-panel-task-count">
{getCountBadge(
countData?.data?.openTaskCount,
'',

View File

@ -258,6 +258,10 @@ const PipelineDetails = ({
[]
);
useEffect(() => {
getEntityFeedCount();
}, []);
const tabs = useMemo(() => {
const tabLabelMap = getTabLabelMapFromTabs(customizedPage?.tabs);