Bump playkit to v0.3 and use Zod API schemas
CI / skip-ci-check (pull_request) Successful in 4s
CI / docker-ci (pull_request) Successful in 7s
CI / secret-scan (pull_request) Successful in 12s
CI / viewer-unit (pull_request) Successful in 1m59s
CI / e2e (pull_request) Successful in 1m54s

Adopt assertSchema via ApiClient, playkitFailureArtifacts in Playwright
config, and keep e2e login on e2e@levkine.ca credentials from CI secrets.
This commit is contained in:
2026-07-14 19:02:48 -04:00
parent 47b15049bc
commit 217b82d912
5 changed files with 46 additions and 30 deletions
+5 -2
View File
@@ -1,10 +1,13 @@
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<{ status: string }>('/health', { expectedStatus: 200 }),
api.get('/health', { expectedStatus: 200, schema: HealthSchema }),
);
expect(res.data).toMatchObject({ status: 'ok' });
expect(res.data).toEqual({ status: 'ok' });
});
});