- Add Playwright E2E configuration and ui-navigation / plugin-system tests - Add GitHub Actions workflow for Playwright CI tests - Add test helpers and fixtures (e2e-mock-plugin) - fix(testing): resolve UnverifiedPluginBatchDialog UI blocking issue in E2E tests - fix(testing): limit Playwright to 2 workers locally to avoid Next.js/Prisma exhaustion - fix(api): replace deprecated processAuthCodeResponse with authorizationCodeGrant - test(ui): add data-testid to PanelToggleArrows and AppShell
16 lines
564 B
TypeScript
16 lines
564 B
TypeScript
import { test, expect } from '@playwright/test';
|
|
|
|
test('has title and boots app completely', async ({ page }) => {
|
|
await page.goto('/');
|
|
|
|
// Expect a title "to contain" a substring.
|
|
await expect(page).toHaveTitle(/WorldWideView/i);
|
|
|
|
// Wait for the boot sequence to finish and plugins to load
|
|
await page.waitForSelector('[data-testid="app-ready"]', { state: 'attached', timeout: 30000 });
|
|
|
|
// Verify that the element is actually present
|
|
const appReady = await page.locator('[data-testid="app-ready"]');
|
|
await expect(appReady).toBeAttached();
|
|
});
|