Upgrade waitForAngular to wait for route content, fix remaining UI tests

The generic waitForAngular matched the sidebar nav immediately but
route content (tables, tabs, forms) hadn't rendered yet.

Updated waitForAngular selector to wait for route-level elements:
stella-page-tabs, .integration-list, .source-catalog, table tbody tr,
h1, [role=tablist], .detail-grid, .wizard-step, form.

Also fixed activity-timeline and pagination tests (still had
waitForTimeout(2_000) instead of waitForAngular).

Increased fallback timeout from 5s to 8s for slow-loading pages.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
master
2026-04-02 21:45:40 +03:00
parent 744637c7c6
commit ae64042759
4 changed files with 44 additions and 27 deletions

View File

@@ -16,6 +16,7 @@ import { test, expect } from './live-auth.fixture';
import {
INTEGRATION_CONFIGS,
createIntegrationViaApi,
waitForAngular,
cleanupIntegrations,
snap,
} from './helpers';
@@ -131,10 +132,10 @@ test.describe('Pagination — API', () => {
test.describe('Pagination — UI Pager', () => {
test('pager info renders on registries tab', async ({ liveAuthPage: page }) => {
await page.goto(`${BASE}/setup/integrations/registries`, {
waitUntil: 'networkidle',
timeout: 30_000,
waitUntil: 'domcontentloaded',
timeout: 45_000,
});
await page.waitForTimeout(2_000);
await waitForAngular(page);
// The pager should show "X total · page Y of Z"
const pagerInfo = page.locator('.pager__info');
@@ -151,10 +152,10 @@ test.describe('Pagination — UI Pager', () => {
test('pager controls are present', async ({ liveAuthPage: page }) => {
await page.goto(`${BASE}/setup/integrations/registries`, {
waitUntil: 'networkidle',
timeout: 30_000,
waitUntil: 'domcontentloaded',
timeout: 45_000,
});
await page.waitForTimeout(2_000);
await waitForAngular(page);
// Check for pagination navigation
const pager = page.locator('.pager');