Files
computer/tests/simple-auth.spec.ts
zeekay 6d6cdb2483 feat: Extract zoo.computer from monorepo
Extracted from zoo monorepo for independent deployment.

Domain: computer.zoo.ngo
Deployment: GitHub Pages (GitHub Actions)
App Directory: computer
2025-11-02 10:41:38 -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:3003/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();
});