@@ -325,25 +325,19 @@ void main() {
325325 // open the popup menu and wait for the animation to complete
326326 await tapMe (tester, sut, 'tooltip_button' );
327327
328+ final data = fixture.getBreadcrumb ().data? .replaceHashCodes ();
329+ final path = (data? ['path' ] as Iterable ? )? .toList ();
330+
331+ expect (data? ['label' ], equals ('Button text' ));
332+ expect (data? ['view.id' ], equals ('tooltip_button' ));
333+ expect (data? ['view.class' ], equals ('ButtonStyleButton' ));
334+ expect (path? .first,
335+ equals ({'name' : 'tooltip_button' , 'element' : 'ButtonStyleButton' }));
328336 expect (
329- fixture.getBreadcrumb ().data? .replaceHashCodes (),
330- equals ({
331- 'path' : [
332- {'name' : 'tooltip_button' , 'element' : 'ButtonStyleButton' },
333- {'element' : 'Semantics' },
334- {'element' : 'Listener' },
335- {'element' : 'OverlayPortal' },
336- {'element' : 'Tooltip' , 'label' : 'Tooltip message.' },
337- {'element' : 'Column' },
338- {'element' : 'Center' },
339- {'name' : '[GlobalKey#00000]' , 'element' : 'KeyedSubtree' },
340- {'element' : 'MediaQuery' },
341- {'name' : '_ScaffoldSlot.body' , 'element' : 'LayoutId' }
342- ],
343- 'label' : 'Button text' ,
344- 'view.id' : 'tooltip_button' ,
345- 'view.class' : 'ButtonStyleButton'
346- }));
337+ path? .any ((element) =>
338+ element['element' ] == 'Tooltip' &&
339+ element['label' ] == 'Tooltip message.' ),
340+ isTrue);
347341 });
348342 });
349343
0 commit comments