Minor: Fix the AutoPilot test flakiness (#22414)

* Fix the AutoPilot specs

* Increase the AutoPilot timeout
This commit is contained in:
Aniket Katkar 2025-07-17 19:41:03 +05:30 committed by GitHub
parent a91a4e5908
commit 58fd1eb592
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 6 additions and 3 deletions

View File

@ -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,
}
);

View File

@ -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',
});
};
/**