test(frontend): document the app.js VM stub contract and drop redundant label-test cleanup #260
Labels
No labels
blocked
bug
enhancement
high-priority
low-priority
needs-info
needs-triage
ready-for-agent
ready-for-human
referenced
research
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
gabogg/hikcentral#260
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
P3 follow-up from PR #243 review pass 2 (standards axis).
Finding
tests/frontend/test_business_cycle_i18n.test.js:10-24evaluates all of app.js in a VM, stubbing onlyt,localStorage,windowanddocument.addEventListener/getElementById. If someone later adds top-level code that usesfetch,navigator,setIntervalorquerySelector, this i18n test breaks for an unrelated reason. The test also overwrites two globals after the VM eval.tests/test_business_cycle_labels.py::test_timespan_labels_are_englishsaves the config and restores it in try/finally, even thoughisolated_repository_dbalready gives each test a fresh DB.Acceptance Criteria