mirror of
https://github.com/go-gitea/gitea.git
synced 2026-03-05 16:53:03 +01:00
Add playwright/no-raw-locators eslint rule for e2e tests
Forbid page.locator() in favor of semantic locators like getByRole, getByLabel, getByText. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
cbe336f466
commit
3dd69ecfc0
@ -913,6 +913,7 @@ export default defineConfig([
|
||||
files: ['tests/e2e/*.test.ts'],
|
||||
rules: {
|
||||
...playwright.configs['flat/recommended'].rules,
|
||||
'playwright/no-raw-locators': [2],
|
||||
},
|
||||
},
|
||||
{
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user