- Stripped 11 business crates (health, ai, dialysis, plugins) - Cleaned AppState, AppConfig, main.rs from business coupling - Reduced migrations from 169 to 53 (base-only) - Removed health_provider trait from erp-core - Removed business integration tests - Removed gateway rate limiting middleware - Base capabilities: auth, RBAC, JWT, config, workflow, message, plugin, audit, crypto, RLS, multi-tenant Cargo check: OK Cargo test: OK
16 lines
546 B
TypeScript
16 lines
546 B
TypeScript
import { test, expect } from '@playwright/test';
|
|
|
|
test.describe('登录流程', () => {
|
|
test('显示登录页面', async ({ page }) => {
|
|
await page.goto('/#/login');
|
|
await expect(page.locator('.ant-card, .ant-form')).toBeVisible();
|
|
});
|
|
|
|
test('空表单提交显示验证错误', async ({ page }) => {
|
|
await page.goto('/#/login');
|
|
await page.click('button[type="submit"]');
|
|
// Ant Design 应显示验证错误
|
|
await expect(page.locator('.ant-form-item-explain-error')).toHaveCount(2); // 用户名 + 密码
|
|
});
|
|
});
|