refactor(e2e): migrate all tests to Playwright Test
This commit is contained in:
parent
174c6c001e
commit
7900f264ba
14 changed files with 398 additions and 401 deletions
11
tests/e2e/health.spec.js
Normal file
11
tests/e2e/health.spec.js
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
// @ts-check
|
||||
const { test, expect } = require('@playwright/test');
|
||||
|
||||
test.describe('Health endpoint', () => {
|
||||
test('returns OK status', async ({ request }) => {
|
||||
const resp = await request.get('/health');
|
||||
expect(resp.ok()).toBe(true);
|
||||
const body = await resp.json();
|
||||
expect(body.status).toBe('ok');
|
||||
});
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue