Initial commit

This commit is contained in:
2026-04-24 08:02:13 +02:00
commit 867c06295c
76 changed files with 10573 additions and 0 deletions
+21
View File
@@ -0,0 +1,21 @@
import { test, expect } from '@playwright/test';
test('stop sleep gives 422', async ({ page }) => {
const errors: string[] = [];
page.on('response', res => {
if (res.url().includes('/api/sessions/') && res.status() >= 400) {
errors.push(`${res.status()} at ${res.url()}`);
}
});
await page.goto('http://localhost:5173/');
await page.getByRole('button', { name: /Start Sleep/i }).click();
await page.waitForTimeout(1000);
await page.getByRole('button', { name: /Stop Sleep/i }).click();
await page.waitForTimeout(1000);
console.log('Errors:', errors);
expect(errors.length).toBe(0);
});