/** * L2 回归测试:音频编辑 */ import { test, expect } from '@playwright/test'; import { apiGet, apiPost, initApiClient, disposeApiClient } from '../helpers/api-client'; test.describe('音频编辑 (AudioEdit)', () => { test.beforeAll(async () => { await initApiClient(); }); test.afterAll(async () => { await disposeApiClient(); }); test('AE01: 获取音频编辑列表 GET /api/audio', async () => { const res = await apiGet('/api/audio'); expect(res.code).toBe(0); }); test('AE02: 音频合并 POST /api/audio/merge', async () => { const res = await apiPost('/api/audio/merge', { audioIds: ['audio-001', 'audio-002'], order: [1, 2], }); expect([0, 400, 404]).toContain(res.code); }); });