test(admin): mail template locale switcher

- LocaleVariantSwitcher: current flag, option values and locales, the label
  through the control id, the query kept on navigation, no navigation for the
  open version, selection restored when a guard throws, props updates
- FormView: no switcher with one variant; with unsaved edits switching asks
  the unsaved-changes confirm, stays on cancel and opens the sibling on confirm
- check-phase35.sh requires LocaleVariantSwitcher.test.ts (ADMIN_FILES)
This commit is contained in:
Jakub Zych
2026-11-13 21:38:36 +01:00
parent eed91c821a
commit a9381165c7
3 changed files with 111 additions and 3 deletions

View File

@@ -134,6 +134,7 @@ ADMIN_FILES=(
tests/form/ColorPickerField.test.ts
tests/form/MailImageField.test.ts
tests/form/FormViewMail.test.ts
tests/form/LocaleVariantSwitcher.test.ts
tests/list/RowStateBadges.test.ts
tests/views/SettingsFormView.test.ts
)