Skip to content

Commit

Permalink
test(react-native): add 0.75 to version-dependent step assertions
Browse files Browse the repository at this point in the history
  • Loading branch information
yousif-bugsnag committed Jul 22, 2024
1 parent 55d35ee commit 060745f
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 2 deletions.
12 changes: 10 additions & 2 deletions test/react-native/features/native-stack.feature
Original file line number Diff line number Diff line change
Expand Up @@ -96,24 +96,28 @@ Scenario: Handled JS error with native stacktrace
And the error payload field "events.0.exceptions.0.stacktrace.0.type" equals "cocoa"

# the javascript part follows
# On 0.74 New Arch there is no JS stacktrace - see PLAT-12193
# On 0.74+ New Arch there is no JS stacktrace - see PLAT-12193
And the event "exceptions.0.stacktrace.20.columnNumber" equals the version-dependent string:
| arch | version | value |
| new | 0.75 | @skip |
| new | 0.74 | @skip |
| new | default | @not_null |
| old | default | @not_null |
And the event "exceptions.0.stacktrace.20.file" equals the version-dependent string:
| arch | version | value |
| new | 0.75 | @skip |
| new | 0.74 | @skip |
| new | default | @not_null |
| old | default | @not_null |
And the event "exceptions.0.stacktrace.20.lineNumber" equals the version-dependent string:
| arch | version | value |
| new | 0.75 | @skip |
| new | 0.74 | @skip |
| new | default | @not_null |
| old | default | @not_null |
And the event "exceptions.0.stacktrace.20.type" equals the version-dependent string:
| arch | version | value |
| new | 0.75 | @skip |
| new | 0.74 | @skip |
| new | default | @null |
| old | default | @null |
Expand All @@ -140,24 +144,28 @@ Scenario: Unhandled JS error with native stacktrace
And the error payload field "events.0.exceptions.0.stacktrace.0.type" equals "cocoa"

# the javascript part follows
# On 0.74 New Arch there is no JS stacktrace - see PLAT-12193
# On 0.74+ New Arch there is no JS stacktrace - see PLAT-12193
And the event "exceptions.0.stacktrace.20.columnNumber" equals the version-dependent string:
| arch | version | value |
| new | 0.75 | @skip |
| new | 0.74 | @skip |
| new | default | @not_null |
| old | default | @not_null |
And the event "exceptions.0.stacktrace.20.file" equals the version-dependent string:
| arch | version | value |
| new | 0.75 | @skip |
| new | 0.74 | @skip |
| new | default | @not_null |
| old | default | @not_null |
And the event "exceptions.0.stacktrace.20.lineNumber" equals the version-dependent string:
| arch | version | value |
| new | 0.75 | @skip |
| new | 0.74 | @skip |
| new | default | @not_null |
| old | default | @not_null |
And the event "exceptions.0.stacktrace.20.type" equals the version-dependent string:
| arch | version | value |
| new | 0.75 | @skip |
| new | 0.74 | @skip |
| new | default | @null |
| old | default | @null |
3 changes: 3 additions & 0 deletions test/react-native/features/unhandled-android.feature
Original file line number Diff line number Diff line change
Expand Up @@ -25,16 +25,19 @@ Scenario: Reporting an Unhandled Native error
And the event "unhandled" is true
And the event "exceptions.0.errorClass" equals the version-dependent string:
| arch | version | value |
| new | 0.75 | Error |
| new | 0.74 | Error |
| new | default | java.lang.RuntimeException |
| old | default | java.lang.RuntimeException |
And the event "exceptions.0.type" equals the version-dependent string:
| arch | version | value |
| new | 0.75 | reactnativejs |
| new | 0.74 | reactnativejs |
| new | default | android |
| old | default | android |
And the event "exceptions.0.message" equals the version-dependent string:
| arch | version | value |
| new | 0.75 | Exception in HostFunction: UnhandledNativeErrorScenario |
| new | 0.74 | Exception in HostFunction: UnhandledNativeErrorScenario |
| new | default | UnhandledNativeErrorScenario |
| old | default | UnhandledNativeErrorScenario |
Expand Down
2 changes: 2 additions & 0 deletions test/react-native/features/unhandled-ios.feature
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ Scenario: Reporting an Unhandled Native error
Then I wait to receive an error
And the event "exceptions.0.errorClass" equals the version-dependent string:
| arch | version | value |
| new | 0.75 | N8facebook3jsi7JSErrorE |
| new | 0.74 | N8facebook3jsi7JSErrorE |
| new | 0.73 | N8facebook3jsi7JSErrorE |
| new | default | NSException |
Expand All @@ -33,6 +34,7 @@ Scenario: Reporting an Unhandled Native error
And the event "unhandled" is true
And the event "exceptions.0.message" equals the version-dependent string:
| arch | version | value |
| new | 0.75 | Exception in HostFunction: UnhandledNativeErrorScenario\n\nError: Exception in HostFunction: UnhandledNativeErrorScenario |
| new | 0.74 | Exception in HostFunction: UnhandledNativeErrorScenario\n\nError: Exception in HostFunction: UnhandledNativeErrorScenario |
| new | 0.73 | Exception in HostFunction: UnhandledNativeErrorScenario\n\nError: Exception in HostFunction: UnhandledNativeErrorScenario |
| new | default | UnhandledNativeErrorScenario |
Expand Down

0 comments on commit 060745f

Please sign in to comment.