import { test, expect } from "@playwright/test"; test.describe("import flow e2e", () => { test("login → mails list → open M2", async ({ page }) => { await page.goto("/login"); await page.getByLabel(/用户名|Username/i).fill("admin"); await page.getByLabel(/密码|Password/i).fill("admin123"); await page.getByRole("button", { name: /登录/ }).click(); await expect(page).toHaveURL(/\/mails/); await expect(page.getByText(/MATU2745683|转仓/)).toBeVisible({ timeout: 15_000, }); }); });