aglinxinyuan opened a new issue, #7423: URL: https://github.com/apache/texera/issues/7423
### Task Summary `AdminSettingsComponent`'s template is four near-identical Save/Reset cards, three near-identical upload blocks, and twelve sidebar switches. All 31 of its listener functions and all 34 of its branches are unhit, because the existing spec calls the component's methods directly and never renders an interaction. The realistic defect here is cross-wiring from copy-paste, and two switch keys are one character apart: - `workflow_enabled` vs `workflows_enabled` - `dataset_enabled` vs `datasets_enabled` A swap between either pair is invisible on screen and silently toggles the wrong sidebar entry. The strongest available test walks the twelve switches in template order and asserts each flips exactly one setting and no other. Also unpinned: the Hub children (`home`, `workflow`, `dataset`) locked until Hub is on and the Your Work children locked until Your Work is on; the three section switches never being locked, since locking one behind itself would make it impossible to switch back on; each of the five number inputs owning its own field; each card's Save and Reset reaching that card's own handler; each "Choose a …" button opening its own hidden input; each file input tagging its change with its own setting key; and the previews rendering only for images that have been chosen. ### Task Type - [ ] Refactor / Cleanup - [ ] DevOps / Deployment / CI - [x] Testing / QA - [ ] Documentation - [ ] Performance - [ ] Other -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
