Repository navigation
FrontendKnowledgeIndex
Paulo Gomes da Cruz Junior edited this page Nov 3, 2026
·
8 revisions
Human-facing index for frontend troubleshooting and test fixes.
| Document | Description |
|---|---|
| Act Warnings | React act(...) warnings from async state updates in tests. Wrapping renders in act() for Transitioner, Carbon components, and AuthProvider. |
| Async Test Isolation | Multiple elements found due to unawaited async render helper leaking DOM between Vitest tests. |
| Carbon ComboBox | How to properly interact with IBM Carbon's ComboBox in Vitest plus Testing Library. CustomEvent dispatch works only on the input node; prefer real userEvent. |
| No Node Access | Replace DOM traversal like .closest('form') and document.querySelector() with semantic queries. Covers getByTestId gotchas with Carbon wrappers. |
| Prefer User Event | Replace fireEvent with @testing-library/user-event for realistic browser event sequences. |
| Frontend Verification and Tooling | Vitest skips typechecking (run both tsc configs), zsh breaks unquoted ESLint file lists, stale Playwright dev servers fail e2e at login, and Lombok LSP noise. |
| TanStack Form Subscription |
useForm does not re-render the owning component. Subscribe with a narrow useSelector(form.store, ...) to read form values reactively. |
| Document | Description |
|---|---|
| Test Patterns — Block Creation Wizard | Dirty-tab guard, scoped query cache, create stub, and cancellation test patterns. |
| Test Patterns — Formula Create Screen | Patterns for FormulaConfigurationCreateForm coverage improvement: Carbon RadioButtonGroup mocking in jsdom, TanStack Form setFieldValue re-render handling, Carbon Button submit workaround, multiple identical test IDs, and FormulaInput mock pattern. |
| Carbon React Grid and Subgrid Layouts | Responsive Carbon spans, scoped generated-grid styling, field grouping, and browser geometry checks. |
-
testing-library/prefer-user-event — Replace
fireEventwith@testing-library/user-event - testing-library/no-node-access — Replace DOM traversal with semantic queries
-
testing-library/act-warnings — Wrap async state updates from test router, Carbon, and AuthProvider in
act()
This wiki documents NR Waste Plus for users and developers. Verify security and deployment guidance against the current application configuration before applying it elsewhere.
- Report an issue or ask a question in the GitHub repository.
- Follow the Contributing Guidelines to propose an update.
- Read the Code of Conduct.
Collection indexes support human browsing and machine retrieval. Keep both current when adding or moving wiki pages.
NR Waste Plus Wiki | GitHub Repository