test: E2E 测试用例更新与新增
- 更新 Page Object 模型适配新字段名 - 新增 UAT 测试套件与 journey 测试用例 - 优化测试辅助工具与数据工厂 - 更新 playwright 认证状态
This commit is contained in:
@@ -10,7 +10,7 @@ test.describe('字典管理功能测试', () => {
|
||||
},
|
||||
data: {
|
||||
username: 'admin',
|
||||
password: 'admin123'
|
||||
password: 'Test@123'
|
||||
}
|
||||
});
|
||||
|
||||
@@ -28,20 +28,20 @@ test.describe('字典管理功能测试', () => {
|
||||
const loginButton = page.locator('button:has-text("登录")').first();
|
||||
|
||||
await usernameInput.fill('admin');
|
||||
await passwordInput.fill('admin123');
|
||||
await passwordInput.fill('Test@123');
|
||||
await loginButton.click();
|
||||
|
||||
await page.waitForTimeout(2000);
|
||||
|
||||
// 点击系统管理菜单
|
||||
const systemMenu = page.locator('.el-sub-menu:has-text("系统管理")').first();
|
||||
const systemMenu = page.locator('.ant-menu-submenu:has-text("系统管理")').first();
|
||||
if (await systemMenu.count() > 0) {
|
||||
await systemMenu.click();
|
||||
await page.waitForTimeout(500);
|
||||
}
|
||||
|
||||
// 点击字典管理
|
||||
const dictManagement = page.locator('.el-menu-item:has-text("字典管理")').first();
|
||||
const dictManagement = page.locator('.ant-menu-item:has-text("字典管理")').first();
|
||||
if (await dictManagement.count() > 0) {
|
||||
await dictManagement.click();
|
||||
await page.waitForTimeout(1000);
|
||||
@@ -52,7 +52,7 @@ test.describe('字典管理功能测试', () => {
|
||||
// 检查是否有字典管理列表或表格
|
||||
const tableSelectors = [
|
||||
'table',
|
||||
'.el-table',
|
||||
'.ant-table',
|
||||
'[class*="table"]',
|
||||
'.dict-list'
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user