1.2 KiB
Disable work without losing data
WJ-008 creates a work entry through the browser and prepares two enabled device reminder subscriptions in the isolated test database. Both must be due on a controlled weekday without work for that day, proving that the subsequent suppression is caused by the setting.
The browser unchecks Track work and saves Settings, then verifies the work column is absent on Today while Reading remains visible. ReminderEligibility must reject both subscriptions. The test opens Reports, downloads the actual yearly JSON through its export link and verifies the original date, hours and description. The persisted work row must remain unchanged.
Per-device opt-in records need not be erased: the account-wide work setting suppresses eligibility for every device. No real push or email is sent. The test uses isolated account and subscription fixtures. Validation passed for 0.1.51-SNAPSHOT: all eleven browser scenarios, 185 executed JVM cases (206 reported, 21 filtered or still unbound), zero failures/errors, 68 operations tests, 17 frontend tests and production/admin-recovery smoke checks. All habit feature scenarios are now bound through the service and browser suites. No production or schema change was needed.