feat(workbench): integrate operational workflows and map state
This commit is contained in:
@@ -142,9 +142,13 @@ test.describe("mobile workbench sheet", () => {
|
||||
await page.goto("/", { waitUntil: "domcontentloaded" });
|
||||
await page.getByRole("button", { name: "打开工况任务" }).click();
|
||||
const sheet = page.getByRole("region", { name: "工况任务抽屉" });
|
||||
await sheet.getByRole("button", { name: "展开工况任务" }).click();
|
||||
await sheet.getByRole("button", { name: /预约任务/ }).click();
|
||||
await sheet.getByRole("button", { name: "收起工况任务" }).click();
|
||||
const awaitingReplyWorkOrder = sheet
|
||||
.locator('button[aria-pressed]')
|
||||
.filter({ hasText: "演示工单:泵站边界复核复令" });
|
||||
.filter({ hasText: "演示工单:泵站边界复核复令" })
|
||||
.last();
|
||||
|
||||
await expect(awaitingReplyWorkOrder.getByText("待复令", { exact: true })).toBeVisible();
|
||||
await awaitingReplyWorkOrder.click();
|
||||
|
||||
Reference in New Issue
Block a user