test(e2e): update e2e tests and auth tokens

- Update E2E test files with latest authentication tokens
- Improve test stability and error handling
- Update pytest configuration
- Enhance gateway direct test with settings integration
This commit is contained in:
张翔
2026-04-23 16:35:57 +08:00
parent f590c40c21
commit 0d0b4decc3
14 changed files with 1327 additions and 151 deletions
@@ -9,13 +9,10 @@ test.describe('调试角色分配', () => {
});
await test.step('查找测试用户', async () => {
const searchInput = page.locator('input[placeholder*="用户名"]').first();
await searchInput.fill('testuser_journey');
await page.locator('button:has-text("搜索")').click();
await page.waitForTimeout(1000);
const userRow = page.locator('.el-table__row').first();
await expect(userRow).toBeVisible({ timeout: 5000 });
await expect(userRow).toBeVisible({ timeout: 10000 });
await page.screenshot({ path: 'test-results/debug-role-1-user-found.png' });
});