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 af5cfcc774d..4d8dec19268 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 @@ -1601,8 +1601,6 @@ test.describe('Glossary tests', () => { try { await glossary.create(apiContext); - await glossaryTerm.create(apiContext); - await glossary.patch(apiContext, [ { op: 'add', @@ -1617,6 +1615,8 @@ test.describe('Glossary tests', () => { }, ]); + await glossaryTerm.create(apiContext); + await test.step( 'Navigate to glossary and verify workflow widget', async () => { diff --git a/openmetadata-ui/src/main/resources/ui/playwright/utils/domain.ts b/openmetadata-ui/src/main/resources/ui/playwright/utils/domain.ts index d89723afc98..54a796b88ce 100644 --- a/openmetadata-ui/src/main/resources/ui/playwright/utils/domain.ts +++ b/openmetadata-ui/src/main/resources/ui/playwright/utils/domain.ts @@ -172,6 +172,8 @@ export const selectDataProductFromTab = async ( await dpRes; + await page.waitForSelector('[data-testid="loader"]', { state: 'detached' }); + const dpDataRes = page.waitForResponse('/api/v1/dataProducts/name/*'); await page diff --git a/openmetadata-ui/src/main/resources/ui/playwright/utils/glossary.ts b/openmetadata-ui/src/main/resources/ui/playwright/utils/glossary.ts index 8fa2f32e215..2fe13dacffc 100644 --- a/openmetadata-ui/src/main/resources/ui/playwright/utils/glossary.ts +++ b/openmetadata-ui/src/main/resources/ui/playwright/utils/glossary.ts @@ -76,11 +76,10 @@ export const selectActiveGlossary = async ( } else { await menuItem.click(); } - } else { - await page.waitForSelector('[data-testid="loader"]', { - state: 'detached', - }); } + await page.waitForSelector('[data-testid="loader"]', { + state: 'detached', + }); }; export const selectActiveGlossaryTerm = async ( @@ -553,8 +552,8 @@ export const verifyWorkflowInstanceExists = async ( }, { message: 'To verify workflow instance exists', - timeout: 180_000, - intervals: [40_000, 30_000], + timeout: 200_000, + intervals: [50_000], } ) .toBe(true); @@ -564,7 +563,6 @@ export const verifyGlossaryWorkflowReviewerCase = async ( page: Page, glossaryTermFqn: string ) => { - await page.getByTestId('workflow-history-widget').click(); const { apiContext } = await getApiContext(page); const entityLink = encodeURIComponent( `<#E::glossaryTerm::${glossaryTermFqn}>` @@ -602,8 +600,8 @@ export const verifyGlossaryWorkflowReviewerCase = async ( }, { message: 'To verify workflow instance exists', - timeout: 180_000, - intervals: [40_000, 30_000], + timeout: 200_000, + intervals: [50_000], } ) .toEqual('Auto-Approved by Reviewer');