Fix 36 test failures: withRetry for 504s, domcontentloaded for UI, aggregation UI test
Three fixes resolving the cascading test failures: 1. Add withRetry() to integrations.e2e.spec.ts advisory section — the 6 API tests that 504'd on Concelier transport now retry up to 2x 2. Change all UI test page.goto from networkidle to domcontentloaded across 9 test files — networkidle never fires when Angular XHR calls 504, causing 30 UI tests to timeout. domcontentloaded fires when HTML is parsed, then 3s wait lets Angular render. 3. Fix test dependencies — vault-consul-secrets detail test now creates its own integration instead of depending on prior test state. New test: catalog page aggregation report — verifies the advisory source catalog page shows stats bar metrics and per-source freshness data (the UI we built earlier this session). Files changed: integrations.e2e.spec.ts, vault-consul-secrets, ui-*, runtime-hosts, gitlab-integration, error-resilience, aaa-advisory-sync Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -144,10 +144,10 @@ test.describe('Runtime Host — UI Verification', () => {
|
||||
|
||||
test('Runtimes / Hosts tab loads and shows integration', async ({ liveAuthPage: page }) => {
|
||||
await page.goto(`${BASE}/setup/integrations/runtime-hosts`, {
|
||||
waitUntil: 'networkidle',
|
||||
timeout: 30_000,
|
||||
waitUntil: 'domcontentloaded',
|
||||
timeout: 45_000,
|
||||
});
|
||||
await page.waitForTimeout(2_000);
|
||||
await page.waitForTimeout(3_000);
|
||||
|
||||
const heading = page.getByRole('heading', { name: /runtime host/i });
|
||||
await expect(heading).toBeVisible({ timeout: 5_000 });
|
||||
|
||||
Reference in New Issue
Block a user