File tree Expand file tree Collapse file tree
playground/frontend/playground_components_dev/lib/src Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -162,14 +162,10 @@ extension WidgetTesterExtension on WidgetTester {
162162 expectOutputIfDeployed (example, this );
163163
164164 // Animation stops just before the analytics event is fired, wait a bit.
165- //TODO: Fix Analytics Event assert - no RunFinishedAnalyticsEvent
166- // await Future.delayed(const Duration(seconds: 1));
167- //
168- // final event = PlaygroundComponents.analyticsService.lastEvent;
169- // expect(event, isA<RunFinishedAnalyticsEvent>());
170- //
171- // final finishedEvent = event! as RunFinishedAnalyticsEvent;
172- // expect(finishedEvent.snippetContext, eventSnippetContext);
165+ await Future .delayed (const Duration (seconds: 1 ));
166+
167+ final event = PlaygroundComponents .analyticsService.lastEvent;
168+ expect (event.snippetContext, eventSnippetContext);
173169 }
174170
175171 /// Modifies the code controller in a unique way by inserting timestamp
You can’t perform that action at this time.
0 commit comments