All checks were successful
Adopt assertSchema via ApiClient, playkitFailureArtifacts in Playwright config, and keep e2e login on e2e@levkine.ca credentials from CI secrets.
14 lines
430 B
TypeScript
14 lines
430 B
TypeScript
import { z } from 'zod';
|
|
import { test, expect } from '../fixtures';
|
|
|
|
const HealthSchema = z.object({ status: z.literal('ok') });
|
|
|
|
test.describe('api @smoke', () => {
|
|
test('backend /health returns ok', async ({ api, timings }) => {
|
|
const res = await timings.measure('api_health', () =>
|
|
api.get('/health', { expectedStatus: 200, schema: HealthSchema }),
|
|
);
|
|
expect(res.data).toEqual({ status: 'ok' });
|
|
});
|
|
});
|