fix the glossary flaky test (#23498)

(cherry picked from commit 6c7b007056000edc4fe4a0b55dbe70eff033e0fa)
This commit is contained in:
Ashish Gupta 2025-09-22 16:56:57 +05:30 committed by OpenMetadata Release Bot
parent 1cf3649bcc
commit 3f407e76b3
2 changed files with 15 additions and 0 deletions

View File

@ -1227,6 +1227,11 @@ test.describe('Glossary tests', () => {
await selectActiveGlossary(page, glossary1.data.displayName);
await selectActiveGlossaryTerm(page, glossaryTerm1.data.displayName);
await page.getByTestId('terms').click();
await page.waitForLoadState('networkidle');
await page.waitForSelector('[data-testid="loader"]', {
state: 'detached',
});
await performExpandAll(page);
@ -1463,6 +1468,12 @@ test.describe('Glossary tests', () => {
await selectActiveGlossaryTerm(page, glossaryTerm1.data.displayName);
await page.getByTestId('terms').click();
await page.waitForLoadState('networkidle');
await page.waitForSelector('[data-testid="loader"]', {
state: 'detached',
});
await createGlossaryTerm(
page,
glossary2.data.terms[0].data,

View File

@ -1689,4 +1689,8 @@ export const performExpandAll = async (page: Page) => {
);
await page.getByTestId('expand-collapse-all-button').click();
await termRes;
await page.waitForSelector('[data-testid="loader"]', {
state: 'detached',
});
};