fix(GOV-009): 完成脚手架审查整改
This commit is contained in:
@@ -21,3 +21,11 @@ test('应用外壳在桌面和移动视口均可正常呈现', async ({ page })
|
||||
expect(hasHorizontalOverflow).toBe(false);
|
||||
expect(runtimeErrors).toEqual([]);
|
||||
});
|
||||
|
||||
test('Web 通过同源代理访问真实 API 健康契约', async ({ request }) => {
|
||||
const response = await request.get('/api/v1/health');
|
||||
const body = (await response.json()) as { process?: string; status?: string };
|
||||
|
||||
expect(response.status()).toBe(200);
|
||||
expect(body).toMatchObject({ process: 'api', status: 'healthy' });
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user