@@ -184,6 +184,20 @@ describe('form-layout auto responsive', () => {
184
184
await visualDiff ( container , 'form-items' ) ;
185
185
} ) ;
186
186
187
+ it ( 'expandColumns in narrow container' , async ( ) => {
188
+ container . style . width = `calc(${ element . columnWidth } + 6em)` ;
189
+ element . expandColumns = true ;
190
+ await nextResize ( element ) ;
191
+ await visualDiff ( container , 'form-items-expand-columns-narrow-container' ) ;
192
+ } ) ;
193
+
194
+ it ( 'expandColumns in wide container' , async ( ) => {
195
+ container . style . width = '50em' ;
196
+ element . expandColumns = true ;
197
+ await nextResize ( element ) ;
198
+ await visualDiff ( container , 'form-items-expand-columns-wide-container' ) ;
199
+ } ) ;
200
+
187
201
it ( 'labelsAside in narrow container' , async ( ) => {
188
202
container . style . width = `calc(${ element . columnWidth } + 6em)` ;
189
203
element . labelsAside = true ;
@@ -198,6 +212,22 @@ describe('form-layout auto responsive', () => {
198
212
await visualDiff ( container , 'form-items-labels-aside-wide-container' ) ;
199
213
} ) ;
200
214
215
+ it ( 'labelsAside + expandColumns in narrow container' , async ( ) => {
216
+ container . style . width = `calc(${ element . columnWidth } + 6em)` ;
217
+ element . labelsAside = true ;
218
+ element . expandColumns = true ;
219
+ await nextResize ( element ) ;
220
+ await visualDiff ( container , 'form-items-labels-aside-expand-columns-narrow-container' ) ;
221
+ } ) ;
222
+
223
+ it ( 'labelsAside + expandColumns in wide container' , async ( ) => {
224
+ container . style . width = '50em' ;
225
+ element . labelsAside = true ;
226
+ element . expandColumns = true ;
227
+ await nextResize ( element ) ;
228
+ await visualDiff ( container , 'form-items-labels-aside-expand-columns-wide-container' ) ;
229
+ } ) ;
230
+
201
231
it ( 'labelsAside + custom CSS properties' , async ( ) => {
202
232
element . labelsAside = true ;
203
233
element . style . setProperty ( '--vaadin-form-layout-label-width' , '200px' ) ;
0 commit comments