ASSET1D/OAOPS1 完成资产公网试录与巡检降噪
这个提交包含在:
@@ -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();
|
||||
});
|
||||
|
||||
在新工单中引用
屏蔽一个用户