-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathattach_flutter.feature
77 lines (68 loc) · 3.9 KB
/
attach_flutter.feature
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
Feature: Attach to running native Bugsnag instance
Scenario: attach with a handled exception
When I configure the app to run in the "handled" state
And I run "AttachBugsnagScenario"
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 "_Exception"
And the exception "message" equals "Handled exception with attached info"
And the error payload field "events.0.unhandled" is false
And the error payload field "events.0.threads" is a non-empty array
And the event "severity" equals "warning"
And the event "user.id" equals "test-user-id"
And the event "user.email" is null
And the event "user.name" equals "Old Man Tables"
And the event "context" equals "flutter-test-context"
And event 0 contains the feature flag "demo-mode" with no variant
And event 0 contains the feature flag "sample-group" with variant "123"
Scenario: attach with an unhandled exception
When I run "AttachBugsnagScenario"
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 "_Exception"
And the exception "message" equals "Unhandled exception with attached info"
And the error payload field "events.0.threads" is a non-empty array
And the event "context" equals "flutter-test-context"
And the event "severity" equals "error"
And the event "unhandled" is true
And the event "user.email" is null
And the event "user.id" equals "test-user-id"
And the event "user.name" equals "Old Man Tables"
And event 0 contains the feature flag "demo-mode" with no variant
And event 0 contains the feature flag "sample-group" with variant "123"
Scenario: attach with Dart error detection disabled
When I configure the app to run in the "disableDartErrors" state
And I run "AttachBugsnagScenario"
Then I should receive no errors
Scenario: multiple attaches with a handled exception
When I configure the app to run in the "handled extra-attach" state
And I run "AttachBugsnagScenario"
Then I wait to receive 2 errors
And the error is valid for the error reporting API version "4.0" for the "Flutter Bugsnag Notifier" notifier
And the exception "errorClass" equals "_Exception"
And the exception "message" equals "Handled exception with attached info"
And the error payload field "events.0.unhandled" is false
And the error payload field "events.0.threads" is a non-empty array
And the event "severity" equals "warning"
And the event "user.id" equals "test-user-id"
And the event "user.email" is null
And the event "user.name" equals "Old Man Tables"
And the event "context" equals "flutter-test-context"
And event 0 contains the feature flag "demo-mode" with no variant
And event 0 contains the feature flag "sample-group" with variant "123"
Scenario: multiple attaches with an unhandled exception
When I configure the app to run in the "extra-attach" state
When I run "AttachBugsnagScenario"
Then I wait to receive 2 errors
And the error is valid for the error reporting API version "4.0" for the "Flutter Bugsnag Notifier" notifier
And the exception "errorClass" equals "_Exception"
And the exception "message" equals "Unhandled exception with attached info"
And the error payload field "events.0.threads" is a non-empty array
And the event "context" equals "flutter-test-context"
And the event "severity" equals "error"
And the event "unhandled" is true
And the event "user.email" is null
And the event "user.id" equals "test-user-id"
And the event "user.name" equals "Old Man Tables"
And event 0 contains the feature flag "demo-mode" with no variant
And event 0 contains the feature flag "sample-group" with variant "123"