@@ -191,9 +191,9 @@ describe('Hierarchy', () => {
191
191
] ) ;
192
192
} ) ;
193
193
194
- it ( 'renders a list with `root + 2 collapsed + max 2 items`, between 1000 and 1200px' , ( ) => {
194
+ it ( 'renders a list with `root + 2 collapsed + max 2 items`, between 1000 and 1200px' , async ( ) => {
195
195
changeSize ( 1100 ) ;
196
-
196
+ await wrapper . vm . $nextTick ( ) ;
197
197
const items = wrapper . findAll ( HierarchyItem ) ;
198
198
// assert what items are shown
199
199
// assert root item
@@ -234,8 +234,9 @@ describe('Hierarchy', () => {
234
234
] ) ;
235
235
} ) ;
236
236
237
- it ( 'renders a list with `3 collapsed + max 1 item`, between 735 and 1000px' , ( ) => {
237
+ it ( 'renders a list with `3 collapsed + max 1 item`, between 735 and 1000px' , async ( ) => {
238
238
changeSize ( 900 ) ;
239
+ await wrapper . vm . $nextTick ( ) ;
239
240
const items = wrapper . findAll ( HierarchyItem ) ;
240
241
// assert what items are shown
241
242
// assert there is no root item
@@ -283,8 +284,9 @@ describe('Hierarchy', () => {
283
284
] ) ;
284
285
} ) ;
285
286
286
- it ( 'renders a list with `5 collapsed and no external links`, below 735' , ( ) => {
287
+ it ( 'renders a list with `5 collapsed and no external links`, below 735' , async ( ) => {
287
288
changeSize ( 720 ) ;
289
+ await wrapper . vm . $nextTick ( ) ;
288
290
const items = wrapper . findAll ( HierarchyItem ) ;
289
291
// assert what items are shown
290
292
// assert there is no root item
0 commit comments