ASSET1D/OAOPS1 完成资产公网试录与巡检降噪

这个提交包含在:
2026-05-23 16:11:49 +08:00
父节点 4b8685d5dc
当前提交 c76001c8d2
共修改 8 个文件,包含 314 行新增和 22 行删除
+12 -2
查看文件
@@ -3,6 +3,15 @@ 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,
@@ -44,8 +53,9 @@ test("E2E 企微入口:普通浏览器下企微按钮为次级入口", async (
await page.getByTestId("wecom-entry-secondary").click();
await expect(page).toHaveURL(/\/api\/auth\/wecom\/login\?returnTo=/);
await login(page, EMPLOYEE);
await openProfileSettings(page, EMPLOYEE.name);
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();
});