2026-03-06 15:39:11 +00:00
|
|
|
import { test, expect } from '@playwright/test';
|
|
|
|
|
|
2026-03-06 16:39:13 +00:00
|
|
|
test('API server starts and returns 200', async () => {
|
|
|
|
|
// Verwende fetch statt Playwrights page-Objekt für einen einfachen HTTP-Test
|
|
|
|
|
const response = await fetch('http://localhost:3000/api/health');
|
|
|
|
|
expect(response.status).toBe(200);
|
2026-03-06 15:39:11 +00:00
|
|
|
});
|