[CHORE] Add playwright eslint plugin

- Add https://github.com/playwright-community/eslint-plugin-playwright
as a linter for the playwright tests.
- `no-networkidle` and `no-conditional-in-test` are disabled as fixing
those doesn't seem to really improve testing quality for our use case.
- Some non-recommended linters are enabled to ensure consistency (the
prefer rules).
This commit is contained in:
Gusted 2024-07-22 20:03:32 +02:00
parent d405143919
commit 40baa96fc3
No known key found for this signature in database
GPG key ID: FD821B732837125F
11 changed files with 66 additions and 20 deletions

View file

@ -19,7 +19,7 @@ test('Switch branch', async ({browser}, workerInfo) => {
await page.waitForLoadState('networkidle');
await expect(page.locator('#loading-indicator')).not.toBeVisible();
await expect(page.locator('#loading-indicator')).toBeHidden();
await expect(page.locator('#rel-container')).toBeVisible();
await expect(page.locator('#rev-container')).toBeVisible();
});