FIX: flaky test and ui issues (#21194)

* fix bulk import table entity flaky test

* modify announcement flaky test

* fix the announcement card placement

* fix the button width and height of inline button component

(cherry picked from commit d2162f5db967fa8d9f2dab2eb0a86ba88e6cf91c)
This commit is contained in:
Ashish Gupta 2025-05-15 12:53:15 +05:30
parent a0195a82a5
commit 54d40535cf
4 changed files with 12 additions and 8 deletions

View File

@ -889,12 +889,10 @@ test.describe('Bulk Import Export', () => {
); );
await page.click('[type="button"] >> text="Update"', { force: true }); await page.click('[type="button"] >> text="Update"', { force: true });
await updateButtonResponse;
await page await page
.locator('.inovua-react-toolkit-load-mask__background-layer') .locator('.inovua-react-toolkit-load-mask__background-layer')
.waitFor({ state: 'detached' }); .waitFor({ state: 'detached' });
await updateButtonResponse;
await page.waitForEvent('framenavigated');
await toastNotification(page, /details updated successfully/); await toastNotification(page, /details updated successfully/);
} }
); );

View File

@ -843,7 +843,7 @@ export const createAnnouncement = async (
await page.reload(); await page.reload();
await page.getByTestId('announcement-card').isVisible(); await page.getByTestId('announcement-card').isVisible();
await expect(page.getByTestId('announcement-card')).toContainText(data.title); await expect(page.getByTestId('announcement-title')).toHaveText(data.title);
// TODO: Review redirection flow for announcement @Ashish8689 // TODO: Review redirection flow for announcement @Ashish8689
// await redirectToHomePage(page); // await redirectToHomePage(page);

View File

@ -709,14 +709,14 @@ export const DataAssetsHeader = ({
/> />
{extraInfo} {extraInfo}
</div> </div>
<div className="mt-2">
{activeAnnouncement && ( {activeAnnouncement && (
<div className="m-t-sm d-flex justify-end">
<AnnouncementCard <AnnouncementCard
announcement={activeAnnouncement} announcement={activeAnnouncement}
onClick={handleOpenAnnouncementDrawer} onClick={handleOpenAnnouncementDrawer}
/> />
)}
</div> </div>
)}
</Col> </Col>
</Row> </Row>

View File

@ -12,4 +12,10 @@
*/ */
.inline-edit-container { .inline-edit-container {
width: 100%; width: 100%;
.ant-btn-icon-only.ant-btn-sm {
width: 24px;
height: 24px;
padding: 0;
}
} }