feat: initialize ERP base platform (extracted from HMS)
- 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
This commit is contained in:
15
apps/web/e2e/login.spec.ts
Normal file
15
apps/web/e2e/login.spec.ts
Normal file
@@ -0,0 +1,15 @@
|
||||
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); // 用户名 + 密码
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user