WCM6 回填公网复检并等待真机门禁

这个提交包含在:
2026-05-11 22:00:12 +08:00
父节点 e6c739ddd6
当前提交 b80af78613
共修改 4 个文件,包含 11 行新增和 5 行删除
@@ -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`);