test(e2e): address copilot review for fixture stability and CI python setup

This commit is contained in:
kl
2026-03-04 12:05:31 +08:00
parent 8f9dda5a8d
commit 7f6ad472c4
7 changed files with 39 additions and 15 deletions

View File

@@ -11,6 +11,14 @@ async function openPreview(request: any, fileUrl: string) {
return request.get(`/onlinePreview?url=${encoded}`);
}
test.beforeAll(async ({ request }) => {
const required = ['sample.txt', 'sample.docx', 'sample.xlsx', 'sample.pptx', 'sample.zip'];
for (const name of required) {
const resp = await request.get(`${fixtureBase}/${name}`);
expect(resp.ok(), `fixture missing or unavailable: ${name}`).toBeTruthy();
}
});
test('01 home/index reachable', async ({ request }) => {
const resp = await request.get('/');
expect(resp.status()).toBeLessThan(500);