develop #1

Merged
zhangxiang merged 60 commits from develop into main 2026-04-05 10:28:15 +08:00
Showing only changes of commit 7c0abc43f2 - Show all commits
@@ -44,8 +44,9 @@ test.describe('系统全面集成测试', () => {
await loginPage.passwordInput.fill('wrongpassword');
await loginPage.loginButton.click();
await page.waitForSelector('.el-message', { timeout: 5000 });
await expect(page.locator('.el-message')).toBeVisible();
await page.waitForTimeout(2000);
await expect(page).toHaveURL(/.*login/, { timeout: 5000 });
});
test('1.3 不存在的用户登录失败', async ({ page }) => {
@@ -54,8 +55,9 @@ test.describe('系统全面集成测试', () => {
await loginPage.passwordInput.fill('Test@123');
await loginPage.loginButton.click();
await page.waitForSelector('.el-message', { timeout: 5000 });
await expect(page.locator('.el-message')).toBeVisible();
await page.waitForTimeout(2000);
await expect(page).toHaveURL(/.*login/, { timeout: 5000 });
});
test('1.4 空用户名或密码登录失败', async ({ page }) => {
@@ -73,8 +75,9 @@ test.describe('系统全面集成测试', () => {
await loginPage.passwordInput.fill('Test@123');
await loginPage.loginButton.click();
await page.waitForSelector('.el-message', { timeout: 5000 });
await expect(page.locator('.el-message')).toBeVisible();
await page.waitForTimeout(2000);
await expect(page).toHaveURL(/.*login/, { timeout: 5000 });
});
test('1.6 登出功能正常', async ({ page }) => {