5814535e12
Deploy / Build Production Runtime Images (push) Has been skipped
Deploy / Deploy Production (push) Has been skipped
Deploy / Production Browser E2E (push) Has been skipped
Deploy / Staging E2E Tests (push) Failing after 132h5m39s
Deploy / Deploy Staging (push) Failing after 132h7m13s
CI/CD Pipeline / Frontend Lint (push) Failing after 132h7m49s
CI/CD Pipeline / Validate Code Quality And Tests (push) Failing after 132h7m49s
登录页邮箱/密码的 placeholder 是 name@example.com 和 •••••••••, label 才是 邮箱/密码。改用 getByLabel 更语义化也更稳定。
11 lines
386 B
TypeScript
11 lines
386 B
TypeScript
import { expect, test } from "@playwright/test";
|
|
|
|
test.describe("Authentication page", () => {
|
|
test("renders login form", async ({ page }) => {
|
|
await page.goto("/login");
|
|
await expect(page.getByLabel("邮箱")).toBeVisible();
|
|
await expect(page.getByLabel("密码")).toBeVisible();
|
|
await expect(page.getByRole("button", { name: /登\s*录/ })).toBeVisible();
|
|
});
|
|
});
|