File tree Expand file tree Collapse file tree 1 file changed +28
-0
lines changed
src/lib/kit/components/Inputs/CardOneOf/__tests__ Expand file tree Collapse file tree 1 file changed +28
-0
lines changed Original file line number Diff line number Diff line change @@ -36,6 +36,20 @@ test.describe('Card OneOf', () => {
3636
3737 await expectScreenshot ( ) ;
3838 } ) ;
39+
40+ test ( 'column layout' , async ( { mount, expectScreenshot} ) => {
41+ const specWithColumnLayout = {
42+ ...CARD_ONEOF . default ,
43+ viewSpec : {
44+ ...CARD_ONEOF . default . viewSpec ,
45+ layout : 'column' ,
46+ } ,
47+ } as const ;
48+
49+ await mount ( < DynamicForm spec = { specWithColumnLayout } /> ) ;
50+
51+ await expectScreenshot ( ) ;
52+ } ) ;
3953} ) ;
4054
4155test . describe ( 'Card OneOf view' , ( ) => {
@@ -50,4 +64,18 @@ test.describe('Card OneOf view', () => {
5064
5165 await expectScreenshot ( ) ;
5266 } ) ;
67+
68+ test ( 'column layout' , async ( { mount, expectScreenshot} ) => {
69+ const specWithColumnLayout = {
70+ ...CARD_ONEOF . default ,
71+ viewSpec : {
72+ ...CARD_ONEOF . default . viewSpec ,
73+ layout : 'column' ,
74+ } ,
75+ } as const ;
76+
77+ await mount ( < DynamicView spec = { specWithColumnLayout } value = { VALUE . string } /> ) ;
78+
79+ await expectScreenshot ( ) ;
80+ } ) ;
5381} ) ;
You can’t perform that action at this time.
0 commit comments