fix(e2e): 修复步骤标题选择器和generation tasks API路径
CI/CD Pipeline / Staging E2E Tests (push) Failing after 74h28m10s
CI/CD Pipeline / Deploy Staging (push) Failing after 74h29m43s
CI/CD Pipeline / Frontend Lint (push) Failing after 74h30m16s
CI/CD Pipeline / Validate Code Quality And Tests (push) Failing after 74h31m3s
CI/CD Pipeline / Production Browser E2E (push) Failing after 1732h59m21s
CI/CD Pipeline / Deploy Production (push) Failing after 1732h59m24s
CI/CD Pipeline / Build Production Runtime Images (push) Failing after 1733h4m18s
CI/CD Pipeline / Staging E2E Tests (push) Failing after 74h28m10s
CI/CD Pipeline / Deploy Staging (push) Failing after 74h29m43s
CI/CD Pipeline / Frontend Lint (push) Failing after 74h30m16s
CI/CD Pipeline / Validate Code Quality And Tests (push) Failing after 74h31m3s
CI/CD Pipeline / Production Browser E2E (push) Failing after 1732h59m21s
CI/CD Pipeline / Deploy Production (push) Failing after 1732h59m24s
CI/CD Pipeline / Build Production Runtime Images (push) Failing after 1733h4m18s
This commit is contained in:
@@ -169,7 +169,7 @@ test.describe("Core generation flow", () => {
|
||||
await page.getByRole("button", { name: "下一步" }).click();
|
||||
|
||||
// Step 2: select material
|
||||
await expect(page.getByText("选择素材")).toBeVisible();
|
||||
await expect(page.getByRole("heading", { name: /选择素材/ })).toBeVisible();
|
||||
const librarySelect = page.locator("select").first();
|
||||
await librarySelect.selectOption({ label: libraryName });
|
||||
const materialLabel = page.getByText(sourceFileName).locator("..");
|
||||
@@ -178,19 +178,19 @@ test.describe("Core generation flow", () => {
|
||||
await page.getByRole("button", { name: "下一步" }).click();
|
||||
|
||||
// Step 3: title
|
||||
await expect(page.getByText("选择标题")).toBeVisible();
|
||||
await expect(page.getByRole("heading", { name: /选择标题/ })).toBeVisible();
|
||||
const titleText = `E2E Test ${suffix}`;
|
||||
await page.getByPlaceholder("输入自定义标题…").fill(titleText);
|
||||
await page.getByRole("button", { name: "下一步" }).click();
|
||||
|
||||
// Step 4: voice
|
||||
await expect(page.getByText("选择配音")).toBeVisible();
|
||||
await expect(page.getByRole("heading", { name: /选择配音/ })).toBeVisible();
|
||||
const firstVoiceCard = page.locator(".xx-voice-choice-item").first();
|
||||
await firstVoiceCard.click();
|
||||
await page.getByRole("button", { name: "下一步" }).click();
|
||||
|
||||
// Step 5: confirm and generate
|
||||
await expect(page.getByText("确认生成")).toBeVisible();
|
||||
await expect(page.getByRole("heading", { name: /确认生成/ })).toBeVisible();
|
||||
|
||||
const createTaskPromise = page.waitForResponse(
|
||||
(response) =>
|
||||
@@ -211,7 +211,7 @@ test.describe("Core generation flow", () => {
|
||||
.poll(
|
||||
async () => {
|
||||
const resp = await request.get(
|
||||
`${apiBase}/generation-tasks/${taskData.id}`,
|
||||
`${apiBase}/generation/tasks/${taskData.id}`,
|
||||
{ headers },
|
||||
);
|
||||
if (!resp.ok()) return `http_${resp.status()}`;
|
||||
@@ -250,7 +250,7 @@ test.describe("Core generation flow", () => {
|
||||
expect(project.status()).toBe(200);
|
||||
const projectData = (await project.json()) as ProjectResponse;
|
||||
|
||||
const tasks = await request.get(`${apiBase}/generation-tasks`, {
|
||||
const tasks = await request.get(`${apiBase}/generation/tasks`, {
|
||||
headers,
|
||||
params: { project_id: projectData.id },
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user