Skip to content

Commit 9666071

Browse files
siddhant1Siddhant
andauthored
wait for loaders to disapper before asserting-n (#25581)
Co-authored-by: Siddhant <[email protected]>
1 parent 882b254 commit 9666071

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

openmetadata-ui/src/main/resources/ui/playwright/e2e/Features/LandingPageWidgets/DomainDataProductsWidgets.spec.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,7 @@ test.describe.serial('Domain and Data Product Asset Counts', () => {
118118
}) => {
119119
// Navigate to domain page and add assets via UI
120120
await redirectToHomePage(page);
121+
await waitForAllLoadersToDisappear(page);
121122
await sidebarClick(page, SidebarItem.DOMAIN);
122123

123124
// addAssetsToDomain navigates to assets tab, adds assets, and verifies count
@@ -139,6 +140,7 @@ test.describe.serial('Domain and Data Product Asset Counts', () => {
139140
}) => {
140141
// Navigate to data product page
141142
await redirectToHomePage(page);
143+
await waitForAllLoadersToDisappear(page);
142144
await sidebarClick(page, SidebarItem.DATA_PRODUCT);
143145
await selectDataProduct(page, dataProduct.data);
144146

@@ -164,6 +166,7 @@ test.describe.serial('Domain and Data Product Asset Counts', () => {
164166
// Current state: domain has 2 assets (table, topic)
165167
// Navigate to domain page
166168
await redirectToHomePage(page);
169+
await waitForAllLoadersToDisappear(page);
167170
await sidebarClick(page, SidebarItem.DOMAIN);
168171
await selectDomain(page, domain.data);
169172

@@ -199,6 +202,7 @@ test.describe.serial('Domain and Data Product Asset Counts', () => {
199202
}) => {
200203
// Navigate to data product page
201204
await redirectToHomePage(page);
205+
await waitForAllLoadersToDisappear(page);
202206
await sidebarClick(page, SidebarItem.DATA_PRODUCT);
203207
await selectDataProduct(page, dataProduct.data);
204208

0 commit comments

Comments
 (0)