oa-auth-layout-wecom-login-ux 优化认证页登录布局

这个提交包含在:
2026-05-26 21:23:05 +08:00
父节点 15e4bcb0ed
当前提交 afa03c0b71
共修改 13 个文件,包含 392 行新增和 91 行删除
-18
查看文件
@@ -1,17 +1,5 @@
import { expect, test } from "@playwright/test";
import { EMPLOYEE, login } from "./helpers/auth";
import { openProfileSettings } from "./helpers/navigation";
function runtimeEmployee() {
const identifier = process.env.LIVE_SMOKE_EMPLOYEE_IDENTIFIER?.trim();
const password = process.env.LIVE_SMOKE_EMPLOYEE_PASSWORD?.trim();
if (identifier && password) {
return { identifier, password, name: "Live Smoke Employee" };
}
return EMPLOYEE;
}
function mockWecomConfigPayload() {
return {
enabled: true,
@@ -52,12 +40,6 @@ test("E2E 企微入口:普通浏览器下企微按钮为次级入口", async (
await page.getByTestId("wecom-entry-secondary").click();
await expect(page).toHaveURL(/\/api\/auth\/wecom\/login\?returnTo=/);
const employee = runtimeEmployee();
await login(page, employee);
await openProfileSettings(page, employee.name);
await expect(page.getByRole("heading", { name: "企业微信绑定" })).toBeVisible();
await expect(page.getByText("接入状态", { exact: true })).toBeVisible();
});
test("E2E 企微入口:企业微信场景优先显示企微 CTA,并展示未绑定提示", async ({ page }) => {