refactor(workbench): remove redundant notification state
This commit is contained in:
@@ -428,8 +428,7 @@ test("后端没有调查任务时显示空态,分类标签按压不缩放", as
|
||||
await page.goto("/");
|
||||
await page.getByRole("button", { name: "工况任务", exact: true }).press("Enter");
|
||||
const conditionPanel = page.getByRole("region", { name: "工况任务", exact: true });
|
||||
const expandButton = conditionPanel.getByRole("button", { name: "展开工况任务" });
|
||||
if (await expandButton.isVisible()) await expandButton.click();
|
||||
await conditionPanel.getByRole("button", { name: "展开工况任务" }).click();
|
||||
await conditionPanel.getByRole("button", { name: /调查任务/ }).click();
|
||||
await expect(conditionPanel.getByText("暂无任务", { exact: true })).toBeVisible();
|
||||
await expect(conditionPanel.getByText("新任务进入当前分类后会出现在这里。", { exact: true })).toBeVisible();
|
||||
|
||||
Reference in New Issue
Block a user