From b51f7a6f05a803353c769a46928f40c0b52f52fc Mon Sep 17 00:00:00 2001 From: Salah Al Saleh Date: Fri, 7 Mar 2025 07:38:04 -0800 Subject: [PATCH] Updating regression tests config can take more than 5 seconds (#5179) --- e2e/playwright/regression/shared/config.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/e2e/playwright/regression/shared/config.ts b/e2e/playwright/regression/shared/config.ts index f5d90a0106..58d7aaef1e 100644 --- a/e2e/playwright/regression/shared/config.ts +++ b/e2e/playwright/regression/shared/config.ts @@ -22,6 +22,7 @@ export const validateInitialConfig = async (page: Page, expect: Expect) => { await configArea.locator('#a_required_text-group').getByRole('textbox').fill('i filled this because it is required'); await configArea.getByLabel('Check to include helm chart').check(); await page.getByRole('button', { name: 'Continue' }).click(); + await expect(configArea).not.toBeVisible({ timeout: 30000 }); }; export const updateConfig = async (page: Page, expect: Expect) => { @@ -54,7 +55,7 @@ export const updateConfig = async (page: Page, expect: Expect) => { await page.getByRole('button', { name: 'Save config' }).click(); const nextStepModal = page.getByTestId('config-next-step-modal'); - await expect(nextStepModal).toBeVisible({ timeout: 15000 }); + await expect(nextStepModal).toBeVisible({ timeout: 30000 }); await page.getByRole('button', { name: 'Go to updated version' }).click(); await expect(nextStepModal).not.toBeVisible(); };