feat(workbench): dock task and chart workspaces
This commit is contained in:
@@ -144,3 +144,15 @@ export async function selectInvestigation(page: Page, title: string) {
|
||||
}
|
||||
await task.click();
|
||||
}
|
||||
|
||||
export async function showInvestigationMap(page: Page) {
|
||||
const showMap = page.getByRole("button", { name: "显示地图", exact: true });
|
||||
if (await showMap.isVisible()) await showMap.click();
|
||||
}
|
||||
|
||||
export async function showInvestigationTasks(page: Page) {
|
||||
if (await page.getByRole("region", { name: "工况任务", exact: true }).isVisible()) return;
|
||||
const returnToTasks = page.getByRole("button", { name: "返回工况任务", exact: true });
|
||||
if (await returnToTasks.isVisible()) await returnToTasks.click();
|
||||
else await page.getByRole("button", { name: /^(?:打开)?工况任务$/ }).click();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user