File tree Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -86,16 +86,14 @@ void main() {
86
86
await tester.pumpWidget (const ZulipApp ());
87
87
await tester.pump ();
88
88
89
- late StreamColorSwatch actualSwatch;
90
89
final navigator = await ZulipApp .navigator;
91
- navigator.push (MaterialWidgetRoute (page: Builder (builder: (context) {
92
- actualSwatch = colorSwatchFor (context, subscription);
93
- return const Placeholder ();
94
- })));
90
+ navigator.push (MaterialWidgetRoute (page: Builder (builder: (context) =>
91
+ const Placeholder ())));
95
92
await tester.pumpAndSettle ();
96
93
94
+ final element = tester.element (find.byType (Placeholder ));
97
95
// Compares all the swatch's members; see [ColorSwatch]'s `operator ==`.
98
- check (actualSwatch ).equals (expected);
96
+ check (colorSwatchFor (element, subscription) ).equals (expected);
99
97
});
100
98
}
101
99
You can’t perform that action at this time.
0 commit comments