diff --git a/tests/core/certificates.spec.ts b/tests/core/certificates.spec.ts index 163d3ed9..e26ba39d 100644 --- a/tests/core/certificates.spec.ts +++ b/tests/core/certificates.spec.ts @@ -945,19 +945,16 @@ test.describe('SSL Certificates - CRUD Operations', () => { test('should navigate between Certificates and Proxy Hosts', async ({ page }) => { await test.step('Navigate to Proxy Hosts', async () => { await page.goto('/proxy-hosts'); - await waitForLoadingComplete(page); - const heading = page.getByRole('heading', { name: /proxy.*hosts/i }); + await expect(heading).toBeVisible({ timeout: 10000 }); const hasHeading = await heading.isVisible({ timeout: 5000 }).catch(() => false); expect(hasHeading || true).toBeTruthy(); }); await test.step('Navigate back to Certificates', async () => { await page.goto('/certificates'); - await waitForLoadingComplete(page); - const heading = page.getByRole('heading', { name: /certificates/i }); - await expect(heading).toBeVisible({ timeout: 5000 }); + await expect(heading).toBeVisible({ timeout: 10000 }); }); }); });