Replace fixed waits with waitForAngular in UI tests
The 3s waitForTimeout after page.goto wasn't enough for Angular to bootstrap and render content. Replace with waitForAngular() helper that waits for actual DOM elements (nav, headings) up to 15s, with 5s fallback. 32 calls updated across 10 test files. Also adds waitForAngular to helpers.ts export. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -19,6 +19,7 @@ import {
|
||||
createIntegrationViaApi,
|
||||
cleanupIntegrations,
|
||||
snap,
|
||||
waitForAngular,
|
||||
} from './helpers';
|
||||
|
||||
const BASE = process.env['PLAYWRIGHT_BASE_URL'] || 'https://stella-ops.local';
|
||||
@@ -147,7 +148,7 @@ test.describe('Runtime Host — UI Verification', () => {
|
||||
waitUntil: 'domcontentloaded',
|
||||
timeout: 45_000,
|
||||
});
|
||||
await page.waitForTimeout(3_000);
|
||||
await waitForAngular(page);
|
||||
|
||||
const heading = page.getByRole('heading', { name: /runtime host/i });
|
||||
await expect(heading).toBeVisible({ timeout: 5_000 });
|
||||
|
||||
Reference in New Issue
Block a user