mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-10-29 17:49:14 +00:00
playwright: fix waitForAllLoadersToDisappear fn was not working as expected (#23822)
* playwright: fix waitForAllLoadersToDisappear fn was not working as expected * revert playwright.config.ts changes
This commit is contained in:
parent
b253105875
commit
1fa5641590
@ -43,12 +43,12 @@ import { sidebarClick } from './sidebar';
|
||||
export const waitForAllLoadersToDisappear = async (
|
||||
page: Page,
|
||||
dataTestId = 'loader',
|
||||
timeout = 5000
|
||||
timeout = 30000
|
||||
) => {
|
||||
await page.waitForSelector(`[data-testid="${dataTestId}"]`, {
|
||||
state: 'detached',
|
||||
timeout,
|
||||
});
|
||||
const loaders = page.locator(`[data-testid="${dataTestId}"]`);
|
||||
|
||||
// Wait for the loader elements count to become 0
|
||||
await expect(loaders).toHaveCount(0, { timeout });
|
||||
};
|
||||
|
||||
export const visitEntityPage = async (data: {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user