super-productivity/e2e/tests/focus-mode
Johannes Millan a3327be73d
fix(focus-mode): preserve flowtime break settings across mode switch (#8489)
* fix(focus-mode): preserve flowtime break settings across mode switch

Switching the Flowtime break mode (Ratio-based <-> Rule-based) hides the
inactive section. Formly resets hidden fields by default, wiping the
user's break rules / percentage on a Rule -> Ratio -> Rule round-trip.

Set resetOnHide: false at every level of the breakRules repeat (field,
fieldArray and each inner input) plus on breakPercentage, so the hidden
side keeps its values. Setting it only on the top-level field preserves
the rows but strips their values, which is why a heavier cache/restore
approach appeared necessary.

Adds regression specs that drive the real breakMode control (not the
internal model) so they reproduce the dialog's actual behaviour.

Part of #7581

* test(focus-mode): real-DOM e2e for flowtime mode-switch preservation

Drives the actual mat-select Rule -> Ratio -> Rule round-trip and a real
backspace-clear in the running app. Verified to fail without the
resetOnHide fix (rule inputs are stripped after the round-trip), so it
guards the #7581 regression at the layer where it actually reproduced.
2026-06-19 13:02:01 +02:00
..
auto-start-focus-on-play.spec.ts docs: remove outdated and implemented plan docs 2026-06-08 12:38:51 +02:00
bug-5995-break-resume.spec.ts feat(flowtime): add configurable dynamic breaks (#7402) 2026-05-10 23:22:57 +02:00
flowtime-settings-preserve.spec.ts fix(focus-mode): preserve flowtime break settings across mode switch (#8489) 2026-06-19 13:02:01 +02:00
flowtime-timer-bug-5117.spec.ts test: strengthen unit test assertions and revive disabled plugin specs (#7755) 2026-05-23 18:31:53 +02:00
focus-mode-notes-fullscreen-save.spec.ts fix(focus-mode): persist fullscreen notes when a session ends mid-edit (#8432) 2026-06-16 14:58:50 +02:00
issue-6731-pause-stops-tracking.spec.ts feat(flowtime): add configurable dynamic breaks (#7402) 2026-05-10 23:22:57 +02:00
pomodoro-break-timing-bug-6044.spec.ts feat(focus-mode): focus screen UX overhaul (#7586) 2026-06-12 11:59:56 +02:00
pomodoro-timer-sync-bug-5954.spec.ts feat(flowtime): add configurable dynamic breaks (#7402) 2026-05-10 23:22:57 +02:00
pomodoro-timer-sync-bug-5974.spec.ts New focus mode rework (#7411) 2026-05-06 21:11:02 +02:00