File tree 1 file changed +35
-0
lines changed
flutter/example/integration_test
1 file changed +35
-0
lines changed Original file line number Diff line number Diff line change @@ -124,6 +124,41 @@ void main() {
124
124
// sent in the JS layer
125
125
expect (jsEventJson, equals (dartEventJson));
126
126
});
127
+
128
+ testWidgets ('includes single-view supporting integrations' ,
129
+ (tester) async {
130
+ SentryFlutterOptions ? confOptions;
131
+
132
+ await restoreFlutterOnErrorAfter (() async {
133
+ await SentryFlutter .init ((options) {
134
+ options.enableSentryJs = true ;
135
+ options.dsn = fakeDsn;
136
+
137
+ confOptions = options;
138
+ }, appRunner: () async {
139
+ await tester.pumpWidget (
140
+ SentryWidget (child: const app.MyApp ()),
141
+ );
142
+ });
143
+ });
144
+
145
+ expect (
146
+ confOptions? .sdk.integrations.contains ("screenshotIntegration" ),
147
+ isTrue,
148
+ );
149
+ expect (
150
+ confOptions? .sdk.integrations.contains ("widgetsBindingIntegration" ),
151
+ isTrue,
152
+ );
153
+ expect (
154
+ find.byType (SentryScreenshotWidget ),
155
+ findsOneWidget,
156
+ );
157
+ expect (
158
+ find.byType (SentryUserInteractionWidget ),
159
+ findsOneWidget,
160
+ );
161
+ });
127
162
});
128
163
129
164
group ('disabled' , () {
You can’t perform that action at this time.
0 commit comments