Files
computer/tests/simple-auth.spec.ts
zeekay 05628bb0af fix(ci): fix E2E port mismatch (3003→3690) and track test files
Playwright was waiting for port 3003 but Vite serves on 3690.
Also .gitignore excluded tests/ so CI had zero test files.

- Fix baseURL and webServer.url to port 3690 in playwright.config.ts
- Increase webServer timeout to 180s for CI
- Track test spec files (ignore only tests/screenshots/)
- Fix hardcoded port 3003 URLs in all test files
2026-03-04 14:08:23 -08:00

31 lines
935 B
TypeScript

import { test, expect } from '@playwright/test';
test('sign in page renders', async ({ page }) => {
// Navigate to sign in page
await page.goto('http://localhost:3690/signin');
// Wait for network idle
await page.waitForLoadState('networkidle');
// Check console for errors
page.on('console', msg => {
if (msg.type() === 'error') {
console.log('Console error:', msg.text());
}
});
// Take a screenshot
await page.screenshot({ path: 'signin-debug.png', fullPage: true });
// Try to wait for any h1 element
const h1Count = await page.locator('h1').count();
console.log('Number of h1 elements found:', h1Count);
// Check if page has any content
const bodyText = await page.locator('body').textContent();
console.log('Body text length:', bodyText?.length);
// Check for any visible text
const hasContent = bodyText && bodyText.trim().length > 0;
expect(hasContent).toBeTruthy();
});