Fix E2E test locator ambiguity and lint errors

- dashboard.spec.ts: anchor regex /^\d+\s+Proxy Hosts/ to not match
  "L4 Proxy Hosts" sidebar link
- role-access.spec.ts: use exact: true for "Proxy Hosts" link
- users.spec.ts: match any user count (/\d+ users?/) since other test
  suites create additional users
- groups.spec.ts: remove unused emptyText variable
- link-account.spec.ts: remove unused context parameter

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
fuomag9
2026-04-06 09:59:11 +02:00
parent 785cfb6cc5
commit 2f12475ab0
5 changed files with 4 additions and 5 deletions

View File

@@ -17,7 +17,7 @@ test.describe('Users page', () => {
});
test('displays at least one user (the admin)', async ({ page }) => {
await expect(page.getByText(/1 user/)).toBeVisible({ timeout: 5000 });
await expect(page.getByText(/\d+ users?/)).toBeVisible({ timeout: 5000 });
});
test('search input filters users', async ({ page }) => {