-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy patherror_handler.feature
21 lines (19 loc) · 1.19 KB
/
error_handler.feature
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
Feature: bugsnag.errorHandler
Scenario: Reports unhandled errors from guarded zones
When I configure the app to run in the "zone" state
And I run "ErrorHandlerScenario"
Then I wait to receive an error
And the error is valid for the error reporting API version "4.0" for the "Flutter Bugsnag Notifier" notifier
And the exception "errorClass" equals "_TypeError"
And the error payload field "events.0.unhandled" is true
And the error payload field "events.0.exceptions.0.message" equals "Null check operator used on a null value"
And the error payload field "events.0.threads" is a non-empty array
Scenario: Reports unhandled errors from Future.onError
When I configure the app to run in the "future" state
And I run "ErrorHandlerScenario"
Then I wait to receive an error
And the error is valid for the error reporting API version "4.0" for the "Flutter Bugsnag Notifier" notifier
And the exception "errorClass" equals "String"
And the error payload field "events.0.unhandled" is true
And the error payload field "events.0.exceptions.0.message" equals "exception from the future"
And the error payload field "events.0.threads" is a non-empty array