实现企微首次免密自动绑定(07-28-all-account-login-readiness)
ci-e2e / e2e (push) Canceled after 0s
ci-minimal / check-minimal (push) Canceled after 0s

这个提交包含在:
2026-07-28 11:18:50 +08:00
父节点 0551212b78
当前提交 9b12451b85
共修改 22 个文件,包含 1764 行新增和 132 行删除
+4 -3
查看文件
@@ -63,7 +63,7 @@ test("E2E 企微入口:普通浏览器下只提示企业微信工作台打开"
await expect(page.getByTestId("wecom-entry-secondary")).toHaveCount(0);
});
test("E2E 企微入口:企业微信场景优先显示企微 CTA,并展示未绑定提示", async ({ page }) => {
test("E2E 企微入口:企业微信场景优先显示企微 CTA,并展示映射缺失提示", async ({ page }) => {
await page.addInitScript(() => {
Object.defineProperty(window.navigator, "userAgent", {
configurable: true,
@@ -80,9 +80,10 @@ test("E2E 企微入口:企业微信场景优先显示企微 CTA,并展示未
});
});
await page.goto("/login?redirect=%2Fportal&wecom=unbound");
await page.goto("/login?redirect=%2Fportal&wecom=account_mapping_required");
await expect(page.getByTestId("login-wecom-primary-panel")).toBeVisible();
await expect(page.getByTestId("wecom-entry-primary")).toBeVisible();
await expect(page.getByTestId("login-wecom-notice")).toContainText("当前企业微信账号尚未绑定");
await expect(page.getByTestId("login-wecom-notice")).toContainText("企业微信账号映射尚未完成");
await expect(page.getByTestId("login-wecom-notice")).not.toContainText("账号密码登录");
await expect(page.getByTestId("login-password-secondary-panel")).toBeVisible();
});