refactor: unify data preparations and research input snapshots
Deploy production / deploy (push) Successful in 53s

This commit is contained in:
yuxuanhui
2026-09-12 01:24:02 +08:00
parent 849f86fef7
commit 394438e753
82 changed files with 4146 additions and 2076 deletions
+3 -7
View File
@@ -1,3 +1,4 @@
import { choosePreparation } from "./preparation-helpers";
import { expect, test } from "@playwright/test";
const headers = { "X-WQ-Request": "1" };
const scope = {
@@ -71,13 +72,12 @@ test("native QuantFlow canvas saves versions, branches and restores artifacts",
await page.request.get(`/api/v1/catalog/datasets/TEST_FIN/fields?${params}`)
).json();
const fixed = await (
await page.request.post("/api/v1/catalog/inputs", {
await page.request.post("/api/v1/data-preparations/from-dataset", {
headers,
data: {
scope,
dataset_id: "TEST_FIN",
collection_version: fields.collection_version,
selection: "all",
},
})
).json();
@@ -175,11 +175,7 @@ test("native QuantFlow canvas saves versions, branches and restores artifacts",
.getByRole("button", { name: "启动已保存流程", exact: true })
.click();
await page.getByLabel("自动研究假设").fill("画布条件分支与固定版本");
await page.getByRole("combobox", { name: "自动研究固定输入" }).click();
await page
.getByRole("option")
.filter({ hasText: fixed.id.slice(0, 8) })
.click();
await choosePreparation(page, fixed.name, "选择研究数据准备");
await page.getByLabel("自动研究假设").click();
for (const [label, value] of [
["最大轮数", "1"],