From 5c2737d42c4f6de9298436d2ff3ba26188393894 Mon Sep 17 00:00:00 2001 From: Aniket Katkar Date: Tue, 13 Aug 2024 16:23:15 +0530 Subject: [PATCH] Fix glossary spec flakiness with Assets count verification step `Rename the same entity again` --- .../resources/ui/playwright/e2e/Pages/Glossary.spec.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/openmetadata-ui/src/main/resources/ui/playwright/e2e/Pages/Glossary.spec.ts b/openmetadata-ui/src/main/resources/ui/playwright/e2e/Pages/Glossary.spec.ts index 61acba1ca6b5..fb6aadcae36d 100644 --- a/openmetadata-ui/src/main/resources/ui/playwright/e2e/Pages/Glossary.spec.ts +++ b/openmetadata-ui/src/main/resources/ui/playwright/e2e/Pages/Glossary.spec.ts @@ -11,6 +11,7 @@ * limitations under the License. */ import test, { expect } from '@playwright/test'; +import { toString } from 'lodash'; import { SidebarItem } from '../../constant/sidebar'; import { DashboardClass } from '../../support/entity/DashboardClass'; import { TableClass } from '../../support/entity/TableClass'; @@ -426,7 +427,11 @@ test.describe('Glossary tests', () => { await redirectToHomePage(page); await sidebarClick(page, SidebarItem.GLOSSARY); await selectActiveGlossary(page, glossary1.data.displayName); - await goToAssetsTab(page, glossaryTerm1.data.displayName); + await goToAssetsTab( + page, + glossaryTerm1.data.displayName, + toString(assets.length) + ); await renameGlossaryTerm(page, glossaryTerm1, newName); await verifyGlossaryTermAssets( page,