fix activity feed flaky test (#21635)

This commit is contained in:
Shrushti Polekar 2025-06-07 23:53:16 +05:30 committed by GitHub
parent 161b4a8b2a
commit c3eb2eab09
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -676,10 +676,10 @@ base.describe('Activity feed with Data Consumer User', () => {
'[data-testid="editor-wrapper"] .ql-editor',
'Closing the task with comment'
);
await page1
.locator('.activity-feed-editor-send-btn')
.scrollIntoViewIfNeeded();
const commentPostResponse = page1.waitForResponse('/api/v1/feed/*/posts');
await page1.locator('.activity-feed-editor-send-btn').click();
await commentPostResponse;
const commentWithCloseTask = page1.waitForResponse(
'/api/v1/feed/tasks/*/close'
);