basic tests
This commit is contained in:
parent
cd9c7678ee
commit
1a5ef88c55
4 changed files with 63 additions and 1 deletions
12
tests/basic.spec.js
Normal file
12
tests/basic.spec.js
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
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();
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue