WCM6 回填公网复检并等待真机门禁
这个提交包含在:
@@ -335,7 +335,13 @@ async function login(page: Page) {
|
||||
const accountLogin = page.getByRole("button", { name: "使用账号密码登录" });
|
||||
if (await accountLogin.isVisible().catch(() => false)) {
|
||||
await accountLogin.click();
|
||||
} else {
|
||||
const accountLoginText = page.getByText("使用账号密码登录", { exact: true });
|
||||
if (await accountLoginText.isVisible().catch(() => false)) {
|
||||
await accountLoginText.click();
|
||||
}
|
||||
}
|
||||
await expect(page.getByTestId("login-identifier")).toBeVisible();
|
||||
await page.getByTestId("login-identifier").fill(employee.email);
|
||||
await page.getByTestId("login-password").fill("Password1234");
|
||||
await page.getByTestId("login-submit").click();
|
||||
@@ -458,7 +464,7 @@ async function exerciseMobileRendering(page: Page, key: string, label: string) {
|
||||
}
|
||||
|
||||
await page.getByTestId("mobile-nav-approvals").click();
|
||||
await expect(page).toHaveURL(/\/mobile\/approvals$/);
|
||||
await expect(page).toHaveURL(/\/mobile\/approvals(?:\?.*)?$/);
|
||||
await expect(page.getByTestId("mobile-approvals-list")).toBeVisible();
|
||||
await expectRenderingStable(page, label, `${key}-mobile-approvals`);
|
||||
|
||||
|
||||
在新工单中引用
屏蔽一个用户