增加 后端,后台管理系统,uniapp会员端的自动化测试。

This commit is contained in:
2026-07-21 18:09:29 +08:00
parent df0e68469b
commit 6b60b3b4da
64 changed files with 13095 additions and 376 deletions
+5 -4
View File
@@ -10,7 +10,7 @@ test.describe('参数配置功能测试', () => {
},
data: {
username: 'admin',
password: 'admin123'
password: 'Test@123'
}
});
@@ -21,17 +21,18 @@ test.describe('参数配置功能测试', () => {
test('参数配置列表显示测试', async ({ page }) => {
await test.step('导航到参数配置页面', async () => {
await page.goto('http://localhost:3002/login');
await page.goto('/login');
await page.waitForLoadState('networkidle');
const usernameInput = page.locator('input[type="text"], input[placeholder*="用户名"], input[placeholder*="账号"]').first();
const passwordInput = page.locator('input[type="password"]').first();
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);
await page.waitForURL('**/dashboard', { timeout: 30000 });
// 点击系统管理菜单
const systemMenu = page.locator('.el-sub-menu:has-text("系统管理")').first();