Commit 256a5f9
feat(e2e): strict oxlint, oxfmt, and type-aware linting (#5002)
* feat(e2e): migrate to strict oxlint, oxfmt, and type-aware linting
Replace ESLint, Prettier, and tsc:check with oxlint --type-aware --type-check
and oxfmt in e2e-tests. Add waitForConfigReconciled() for auth provider rollout
waits and remove hard waitForTimeout usage across specs and helpers.
Co-authored-by: Cursor <cursoragent@cursor.com>
* fix(e2e): enable strict TypeScript and resolve all type errors
Set strict: true in e2e-tests tsconfig and fix ~235 type errors across
specs and utilities with proper guards, error helpers, and typing.
Co-authored-by: Cursor <cursoragent@cursor.com>
* fix(e2e): keep lint/prettier/tsc script names for OXC toolchain
Map existing yarn scripts to oxlint and oxfmt so docs, CI, and lint-staged
keep using lint:check, lint:fix, prettier:check, prettier:fix, and tsc:check.
Co-authored-by: Cursor <cursoragent@cursor.com>
* refactor(e2e): simplify OXC scripts to lint and fmt
Use lint/lint:fix and fmt/fmt:check script names, remove tsc and legacy
prettier script aliases. Type-aware settings remain in oxlint.config.ts.
Co-authored-by: Cursor <cursoragent@cursor.com>
* feat(e2e): enable strict oxlint plugins and burn down violations
Add import, node, and promise plugins with suspicious-as-error categories,
promote Playwright and type-aware unsafe-* rules to error, and fix the
resulting violations across helpers, specs, and support code.
Co-authored-by: Cursor <cursoragent@cursor.com>
* refactor(e2e): derive locale and audit types from as const arrays
Use single-source-of-truth const tuples for Locale and audit log enums,
and loop LOCALES when merging translation bundles.
Co-authored-by: Cursor <cursoragent@cursor.com>
* ci: retrigger checks after base branch change
Co-authored-by: Cursor <cursoragent@cursor.com>
* fix(e2e): restore Playwright fixture destructuring for testInfo hooks
Oxlint no-empty-pattern conflicted with Playwright's required `{}` callback
shape; the _args workaround passed lint but broke test collection in Prow.
Disable no-empty-pattern for spec files and add yarn test:list to GHA.
Co-authored-by: Cursor <cursoragent@cursor.com>
* fix(e2e): resolve strict-mode and audit log validation regressions
Restore Log stack parsing dropped by the typed constructor refactor,
use .first() for ambiguous increment buttons after locator migration,
and revert annotator catalog check to verifyText which handles duplicates.
Co-authored-by: Cursor <cursoragent@cursor.com>
* fix(e2e): restore card scoping and catalog import assertions
Revert application-provider to per-card DOM selectors that avoid strict
mode on shared article headings, and stop expecting undefined from
registerExistingComponent which returns a boolean.
Co-authored-by: Cursor <cursoragent@cursor.com>
* refactor(e2e): use inline oxlint disable for application-provider locators
Replace file-level no-raw-locators override with a scoped block comment
next to the nested div card selectors, matching repo convention.
Co-authored-by: Cursor <cursoragent@cursor.com>
* refactor(e2e): restore helper-based assertions from oxlint burn-down
Await whitelisted POM helpers directly instead of expect().resolves.toBeUndefined(),
revert inline locators to uiHelper.verify* where helpers encode strictness,
and drop redundant post-YAML expects covered by inspectEntityAndVerifyYaml.
Co-authored-by: Cursor <cursoragent@cursor.com>
* chore(e2e): adopt Oxfmt defaults with import and package.json sort
Use Oxfmt-recommended defaults (printWidth 100, sortPackageJson) and
enable sortImports. Reformat the full e2e-tests tree so fmt:check stays green.
Co-authored-by: Cursor <cursoragent@cursor.com>
---------
Co-authored-by: Cursor <cursoragent@cursor.com>1 parent 65bcea6 commit 256a5f9
79 files changed
Lines changed: 3414 additions & 4329 deletions
File tree
- .github/workflows
- e2e-tests
- playwright
- data
- e2e
- audit-log
- auth-providers
- configuration-test
- external-database
- localization
- plugin-division-mode-schema
- plugins
- frontend
- licensed-users-info-backend
- scaffolder-backend-module-annotator
- scaffolder-relation-processor
- support
- api
- page-objects
- catalog
- pages
- selectors
- utils
- analytics
- authentication-providers
- keycloak
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
| 16 | + | |
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
36 | | - | |
| 36 | + | |
37 | 37 | | |
38 | | - | |
| 38 | + | |
39 | 39 | | |
40 | | - | |
| 40 | + | |
41 | 41 | | |
42 | | - | |
| 42 | + | |
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
48 | | - | |
| 48 | + | |
49 | 49 | | |
50 | | - | |
| 50 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
7 | 7 | | |
8 | | - | |
9 | 8 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
This file was deleted.
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
0 commit comments