Skip to content

Commit e2b85de

Browse files
authored
Merge pull request #80 from eviltester/57-refactor-to-services
57 refactor to services
2 parents 1bee801 + 8ed1357 commit e2b85de

64 files changed

Lines changed: 3627 additions & 2282 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

AGENTS.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,17 @@ If verification fails:
2121

2222
- `verify:local` is the canonical local gate for this repo.
2323
- CI uses `verify:ci` and branch protection should require CI to pass before merge.
24+
25+
## Browser Test Interaction Rules
26+
27+
When changing UI code, UI test abstractions, or browser tests:
28+
29+
- run `npm run test:browser`
30+
- run `npm test` (or targeted UI Jest suites) for `packages/core-ui/src/tests` and `apps/web/src/tests/jest`
31+
32+
For browser tests and page-object abstractions:
33+
34+
- treat the app as a black box
35+
- use user-like interactions only (`click`, `fill`/`type`, keyboard navigation, blur/focus changes)
36+
- assert outcomes by polling rendered UI state
37+
- do not use synthetic event dispatch or direct DOM hooks to force app sync in browser abstractions (e.g. `dispatchEvent(...)`, `evaluate(...)` used to trigger internal listeners)

0 commit comments

Comments
 (0)