feat: 统一研究模块表格布局与详情交互
This commit is contained in:
@@ -89,7 +89,7 @@ test("目录筛选、双层详情、完整输入、排除、备注与刷新", as
|
||||
const fields = page.getByRole("dialog", { name: "数据字段", exact: true });
|
||||
await expect(fields).toBeVisible();
|
||||
await expect(fields).toContainText("全部 123 个字段");
|
||||
expect((await fields.boundingBox())!.width).toBeCloseTo(1080, 0);
|
||||
expect((await fields.boundingBox())!.width).toBeCloseTo(864, 0);
|
||||
await page.getByLabel("搜索字段").fill("字段 12");
|
||||
await expect(fields.getByRole("button", { name: /TEST 字段/ })).toHaveCount(
|
||||
3,
|
||||
@@ -99,7 +99,7 @@ test("目录筛选、双层详情、完整输入、排除、备注与刷新", as
|
||||
.click();
|
||||
const detail = page.getByRole("dialog", { name: "字段详情", exact: true });
|
||||
await expect(detail).toContainText("FUTURE_TYPE");
|
||||
expect((await detail.boundingBox())!.width).toBeCloseTo(432, 0);
|
||||
expect((await detail.boundingBox())!.width).toBeCloseTo(864, 0);
|
||||
await page.getByLabel("研究备注", { exact: true }).fill("保留字段研究假设");
|
||||
await page.getByRole("button", { name: "保存备注", exact: true }).click();
|
||||
await expect(page.getByText("研究备注已保存")).toBeVisible();
|
||||
@@ -173,7 +173,7 @@ test("窄屏抽屉、键盘隔离和研究范围切换", async ({ page }) => {
|
||||
await openFields(page);
|
||||
const fields = page.getByRole("dialog", { name: "数据字段", exact: true });
|
||||
await expect(fields).toBeVisible();
|
||||
expect((await fields.boundingBox())!.width).toBeCloseTo(390, 0);
|
||||
expect((await fields.boundingBox())!.width).toBeCloseTo(234, 0);
|
||||
await page
|
||||
.getByRole("button", { name: "TEST 字段 000", exact: true })
|
||||
.click();
|
||||
|
||||
Reference in New Issue
Block a user