recoder-crystal/tests/health-check.spec.ts
2025-09-28 12:44:53 -04:00

19 lines
601 B
TypeScript

import { test, expect } from '@playwright/test';
test.describe('Health Check', () => {
test('Electron app should start', async ({ page }) => {
// Try to navigate to the app
await page.goto('/', { waitUntil: 'domcontentloaded', timeout: 30000 });
// Wait for any content to appear
await page.waitForSelector('body', { timeout: 10000 });
// Check that the page has loaded
const title = await page.title();
expect(title).toBeTruthy();
// Take a screenshot for debugging
await page.screenshot({ path: 'test-results/health-check.png' });
});
});