test(09-04): add failing tests for typed list filters

- Switch, date-range, and model-scope filters must keep typed values
- Option labels localize without changing identifiers or cached keys
- Raw conditions, unknown scopes, and arbitrary methods fail activation
This commit is contained in:
Jakub Zych
2026-09-24 18:50:17 +02:00
parent aab4398ce4
commit cb832eb70c
3 changed files with 328 additions and 0 deletions

17
cabana/testdata/list/all_filters.yaml vendored Normal file
View File

@@ -0,0 +1,17 @@
scopes:
activated:
label: demo.lang.activated
type: switch
column: active
options:
true: demo.lang.yes
false: demo.lang.no
created:
label: demo.lang.created_range
type: daterange
column: created_at
grouped:
label: demo.lang.grouped
modelClass: Group
nameFrom: name
scope: filterByGroup