secajs/tests/basic.spec.js
2025-08-28 22:57:20 +02:00

12 lines
396 B
JavaScript

const { test, expect } = require('@playwright/test');
test('app starts and public page is reachable', async ({ page }) => {
// Navigate to the root page
await page.goto('/');
// Check that the page loads (should redirect to login)
await expect(page).toHaveURL('/login');
// Verify we can see some content on the login page
await expect(page.locator('body')).toBeVisible();
});