R98 A1-A2 建档并修正企微 smoke 契约

这个提交包含在:
2026-05-06 20:07:56 +08:00
父节点 adb41db725
当前提交 2d0c506a58
共修改 3 个文件,包含 39 行新增和 3 行删除
+7 -3
查看文件
@@ -422,7 +422,7 @@ test("Portal 域管理角色也进入经理视图", async ({ page }) => {
await expect(page.locator('[aria-label="portal-card-team_presence"]')).toBeVisible();
});
test("企微 WebView 下顶栏显示入口提示", async ({ page }) => {
test("企微 WebView 下默认进入移动工作台", async ({ page }) => {
await page.addInitScript(() => {
Object.defineProperty(window.navigator, "userAgent", {
configurable: true,
@@ -436,7 +436,11 @@ test("企微 WebView 下顶栏显示入口提示", async ({ page }) => {
await mockNotificationList(page);
await mockMe(page, ["employee"], "Employee");
await login(page, EMPLOYEE);
await page.goto("/login");
await page.getByTestId(TEST_IDS.login.identifier).fill(EMPLOYEE.identifier);
await page.getByTestId(TEST_IDS.login.password).fill(EMPLOYEE.password);
await page.getByTestId(TEST_IDS.login.submit).click();
await expect(page.getByTestId("topbar-wecom-entry-badge")).toBeVisible();
await expect(page).toHaveURL(/\/mobile/);
await expect(page.getByTestId("mobile-today-focus")).toBeVisible();
});