File tree Expand file tree Collapse file tree 1 file changed +33
-0
lines changed
packages/components/bolt-list/__tests__ Expand file tree Collapse file tree 1 file changed +33
-0
lines changed Original file line number Diff line number Diff line change @@ -16,6 +16,7 @@ const {
16
16
align,
17
17
valign,
18
18
tag,
19
+ nowrap,
19
20
} = schema . properties ;
20
21
21
22
const timeout = 120000 ;
@@ -112,6 +113,38 @@ describe('<bolt-list> Component', () => {
112
113
} ) ;
113
114
} ) ;
114
115
116
+ nowrap . enum . forEach ( async nowrapChoice => {
117
+ test ( `list nowrap: ${ nowrapChoice } ` , async ( ) => {
118
+ const results = await render ( '@bolt-components-list/list.twig' , {
119
+ display : 'inline' ,
120
+ nowrap : nowrapChoice ,
121
+ items : [
122
+ 'item 1' ,
123
+ 'item 2' ,
124
+ 'item 3' ,
125
+ 'item 4' ,
126
+ 'item 5' ,
127
+ 'item 6' ,
128
+ 'item 7' ,
129
+ 'item 8' ,
130
+ 'item 9' ,
131
+ 'item 10' ,
132
+ 'item 11' ,
133
+ 'item 12' ,
134
+ 'item 13' ,
135
+ 'item 14' ,
136
+ 'item 15' ,
137
+ 'item 16' ,
138
+ 'item 17' ,
139
+ 'item 18' ,
140
+ 'item 19' ,
141
+ ] ,
142
+ } ) ;
143
+ expect ( results . ok ) . toBe ( true ) ;
144
+ expect ( results . html ) . toMatchSnapshot ( ) ;
145
+ } ) ;
146
+ } ) ;
147
+
115
148
test ( 'Bolt List: items accept renderable objects as content' , async ( ) => {
116
149
const results = await renderString ( `
117
150
{% set item_1 = create_attribute({'test-attr': 'test-value'}) %}
You can’t perform that action at this time.
0 commit comments