R98 A1-A2 建档并修正企微 smoke 契约
这个提交包含在:
@@ -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();
|
||||
});
|
||||
|
||||
在新工单中引用
屏蔽一个用户