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:
master
2026-04-02 15:45:37 +03:00
parent 407a00f409
commit 0aaadef8e7
10 changed files with 132 additions and 283 deletions

View File

@@ -116,10 +116,10 @@ test.describe('GitLab Integration — UI Verification', () => {
try {
await page.goto(`${BASE}/setup/integrations/scm`, {
waitUntil: 'networkidle',
timeout: 30_000,
waitUntil: 'domcontentloaded',
timeout: 45_000,
});
await page.waitForTimeout(2_000);
await page.waitForTimeout(3_000);
const pageContent = await page.textContent('body');
expect(pageContent).toContain('GitLab');