test: 删除根目录下的非核心E2E测试文件(任务 2/8)
This commit is contained in:
@@ -5,7 +5,7 @@ export async function loginAsAdmin(page: Page) {
|
||||
await page.waitForLoadState('networkidle');
|
||||
|
||||
await page.locator('input[placeholder*="用户名"]').fill('admin');
|
||||
await page.locator('input[placeholder*="密码"]').fill('admin123');
|
||||
await page.locator('input[placeholder*="密码"]').fill('Test@123');
|
||||
await page.locator('button:has-text("登录")').click();
|
||||
|
||||
await page.waitForURL('**/dashboard', { timeout: 30000 });
|
||||
|
||||
Reference in New Issue
Block a user