19 lines
645 B
TypeScript
19 lines
645 B
TypeScript
import { test, expect } from '@playwright/test'
|
|
|
|
/**
|
|
* E2E tests for Zoo Commerce — billing via shared commerce.hanzo.ai.
|
|
*/
|
|
|
|
const COMMERCE_API = 'https://commerce-api.hanzo.ai'
|
|
|
|
test.describe('Zoo Commerce — Health', () => {
|
|
test('commerce-api healthz', async ({ request }) => {
|
|
const res = await request.get(`${COMMERCE_API}/healthz`, { timeout: 15_000 })
|
|
expect(res.status()).toBe(200)
|
|
const json = await res.json() as { status: string; service: string; version?: string }
|
|
console.log(` commerce v${json.version}: ${json.status}`)
|
|
expect(json.status).toBe('ok')
|
|
expect(json.service).toBe('commerce')
|
|
})
|
|
})
|