Add e2e and unit tests for i18n coverage and POS workflows:

- Introduced i18n key usage validation with `tests/e2e/i18n.views.spec.ts` for deterministic locale coverage.
- Added `viewI18nKeyScanner` utility to scan and validate view translation keys.
- Created `PosDepartmentStep1` unit tests for duplicate warnings and booking selection flow.
- Enhanced POS mobile popup with `SelectOrderBookingPopupProps` and new header close options.
- Updated e2e tests with scenarios to verify booking selections, duplicate handling, and locale alignment.
- Added new `test:e2e:i18n:views` npm script for targeted i18n test execution.
This commit is contained in:
Jeppe Bundgaard
2026-04-14 10:49:20 +02:00
parent 7533622fb1
commit a4676f8f87
30 changed files with 2360 additions and 383 deletions
+1
View File
@@ -340,6 +340,7 @@
"details": "Detaljer",
"download": "Last ned",
"duplicate_order_warning": "Er du sikker på, at dette ikke allerede er oprettet? Mulige dubletter af denne ordre er fundet. Du kan fortsætte med at oprette ordren eller se ordredetaljer.",
"hide_order_details": "Skjul ordredetaljer",
"duplicates": {
"subtitle": "Håndter dubletter",
"title": "Dubletter"