fix: 合并回归问题
Project CI / Repository checks (pull_request) Failing after 7s
Project CI / Backend tests (pull_request) Failing after 8s
Project CI / Frontend tests (pull_request) Successful in 2m44s
Project CI / Native shell tests (pull_request) Successful in 12m14s

修复文件encoding要求
更新测试
This commit is contained in:
2026-07-31 16:56:49 +08:00
parent 1297ac192e
commit cd159163c5
2 changed files with 5 additions and 4 deletions
@@ -1122,7 +1122,9 @@ describe('ImageCanvasEditorView', () => {
await waitFor(() => {
expect(exportedBlob).toBeTruthy();
});
expect(downloadName).toMatch(/^导出项目-画布素材-\d{8}\.zip$/u);
expect(downloadName).toMatch(
/^导出项目-画布素材-\d{8}-\d{6}\.zip$/u,
);
const zip = await JSZip.loadAsync(exportedBlob!);
expect(zip.file('导出项目-画布素材/images/001-素材 A.png')).toBeTruthy();
@@ -1360,7 +1362,7 @@ describe('ImageCanvasEditorView', () => {
fireEvent.click(screen.getByRole('button', { name: '下载按钮' }));
await waitFor(() => {
expect(downloadName).toBe('拼图素材.webp');
expect(downloadName).toMatch(/^拼图素材-\d{8}-\d{6}\.webp$/u);
});
expect(downloadHref).toBe('blob:layer-download');
expect(globalThis.fetch).toHaveBeenCalledWith(