mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-10-30 01:59:23 +00:00
fix the glossary flaky test (#23498)
(cherry picked from commit 6c7b007056000edc4fe4a0b55dbe70eff033e0fa)
This commit is contained in:
parent
1cf3649bcc
commit
3f407e76b3
@ -1227,6 +1227,11 @@ test.describe('Glossary tests', () => {
|
|||||||
await selectActiveGlossary(page, glossary1.data.displayName);
|
await selectActiveGlossary(page, glossary1.data.displayName);
|
||||||
await selectActiveGlossaryTerm(page, glossaryTerm1.data.displayName);
|
await selectActiveGlossaryTerm(page, glossaryTerm1.data.displayName);
|
||||||
await page.getByTestId('terms').click();
|
await page.getByTestId('terms').click();
|
||||||
|
await page.waitForLoadState('networkidle');
|
||||||
|
|
||||||
|
await page.waitForSelector('[data-testid="loader"]', {
|
||||||
|
state: 'detached',
|
||||||
|
});
|
||||||
|
|
||||||
await performExpandAll(page);
|
await performExpandAll(page);
|
||||||
|
|
||||||
@ -1463,6 +1468,12 @@ test.describe('Glossary tests', () => {
|
|||||||
await selectActiveGlossaryTerm(page, glossaryTerm1.data.displayName);
|
await selectActiveGlossaryTerm(page, glossaryTerm1.data.displayName);
|
||||||
await page.getByTestId('terms').click();
|
await page.getByTestId('terms').click();
|
||||||
|
|
||||||
|
await page.waitForLoadState('networkidle');
|
||||||
|
|
||||||
|
await page.waitForSelector('[data-testid="loader"]', {
|
||||||
|
state: 'detached',
|
||||||
|
});
|
||||||
|
|
||||||
await createGlossaryTerm(
|
await createGlossaryTerm(
|
||||||
page,
|
page,
|
||||||
glossary2.data.terms[0].data,
|
glossary2.data.terms[0].data,
|
||||||
|
|||||||
@ -1689,4 +1689,8 @@ export const performExpandAll = async (page: Page) => {
|
|||||||
);
|
);
|
||||||
await page.getByTestId('expand-collapse-all-button').click();
|
await page.getByTestId('expand-collapse-all-button').click();
|
||||||
await termRes;
|
await termRes;
|
||||||
|
|
||||||
|
await page.waitForSelector('[data-testid="loader"]', {
|
||||||
|
state: 'detached',
|
||||||
|
});
|
||||||
};
|
};
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user