mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-09-25 08:50:18 +00:00
Minor: Fix the AutoPilot test flakiness (#22414)
* Fix the AutoPilot specs * Increase the AutoPilot timeout
This commit is contained in:
parent
a91a4e5908
commit
58fd1eb592
@ -95,8 +95,8 @@ services.forEach((ServiceClass) => {
|
||||
test('Create Service and check the AutoPilot status', async ({
|
||||
page,
|
||||
}) => {
|
||||
// 6 minutes max for AutoPilot tests to complete agents running.
|
||||
test.setTimeout(6 * 60 * 1000);
|
||||
// 8 minutes max for AutoPilot tests to complete agents running.
|
||||
test.setTimeout(8 * 60 * 1000);
|
||||
|
||||
await settingClick(
|
||||
page,
|
||||
@ -123,7 +123,6 @@ services.forEach((ServiceClass) => {
|
||||
'[data-testid="auto-pilot-status-banner"] [data-testid="status-banner-icon-RUNNING"] ',
|
||||
{
|
||||
state: 'visible',
|
||||
timeout: 5000,
|
||||
}
|
||||
);
|
||||
|
||||
|
@ -353,6 +353,10 @@ export const closeFirstPopupAlert = async (page: Page) => {
|
||||
export const reloadAndWaitForNetworkIdle = async (page: Page) => {
|
||||
await page.reload();
|
||||
await page.waitForLoadState('networkidle');
|
||||
|
||||
await page.waitForSelector('[data-testid="loader"]', {
|
||||
state: 'detached',
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user