Skip to content

Commit 6de1670

Browse files
committed
test(react-native): update features for 0.79
1 parent b625c26 commit 6de1670

3 files changed

Lines changed: 17 additions & 0 deletions

File tree

test/react-native/features/native-stack.feature

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,13 @@ Scenario: Handled JS error with native stacktrace
1111
# On 0.75+ the Error name is set to the native exception class
1212
And the event "exceptions.0.errorClass" equals the version-dependent string:
1313
| arch | version | value |
14+
| new | 0.79 | java.lang.RuntimeException |
1415
| new | 0.78 | java.lang.RuntimeException |
1516
| new | 0.77 | java.lang.RuntimeException |
1617
| new | 0.76 | java.lang.RuntimeException |
1718
| new | 0.75 | java.lang.RuntimeException |
1819
| new | default | Error |
20+
| old | 0.79 | java.lang.RuntimeException |
1921
| old | 0.78 | java.lang.RuntimeException |
2022
| old | 0.77 | java.lang.RuntimeException |
2123
| old | 0.76 | java.lang.RuntimeException |
@@ -59,11 +61,13 @@ Scenario: Unhandled JS error with native stacktrace
5961
# On 0.75+ the Error name is set to the native exception class
6062
And the event "exceptions.0.errorClass" equals the version-dependent string:
6163
| arch | version | value |
64+
| new | 0.79 | java.lang.RuntimeException |
6265
| new | 0.78 | java.lang.RuntimeException |
6366
| new | 0.77 | java.lang.RuntimeException |
6467
| new | 0.76 | java.lang.RuntimeException |
6568
| new | 0.75 | java.lang.RuntimeException |
6669
| new | default | Error |
70+
| old | 0.79 | java.lang.RuntimeException |
6771
| old | 0.78 | java.lang.RuntimeException |
6872
| old | 0.77 | java.lang.RuntimeException |
6973
| old | 0.76 | java.lang.RuntimeException |
@@ -135,6 +139,7 @@ Scenario: Handled JS error with native stacktrace
135139
# On 0.74+ New Arch there is no JS stacktrace - see PLAT-12193
136140
And the event "exceptions.0.stacktrace.20.columnNumber" equals the version-dependent string:
137141
| arch | version | value |
142+
| new | 0.79 | @skip |
138143
| new | 0.78 | @skip |
139144
| new | 0.77 | @skip |
140145
| new | 0.76 | @skip |
@@ -144,6 +149,7 @@ Scenario: Handled JS error with native stacktrace
144149
| old | default | @not_null |
145150
And the event "exceptions.0.stacktrace.20.file" equals the version-dependent string:
146151
| arch | version | value |
152+
| new | 0.79 | @skip |
147153
| new | 0.78 | @skip |
148154
| new | 0.77 | @skip |
149155
| new | 0.76 | @skip |
@@ -153,6 +159,7 @@ Scenario: Handled JS error with native stacktrace
153159
| old | default | @not_null |
154160
And the event "exceptions.0.stacktrace.20.lineNumber" equals the version-dependent string:
155161
| arch | version | value |
162+
| new | 0.79 | @skip |
156163
| new | 0.78 | @skip |
157164
| new | 0.77 | @skip |
158165
| new | 0.76 | @skip |
@@ -162,6 +169,7 @@ Scenario: Handled JS error with native stacktrace
162169
| old | default | @not_null |
163170
And the event "exceptions.0.stacktrace.20.type" equals the version-dependent string:
164171
| arch | version | value |
172+
| new | 0.79 | @skip |
165173
| new | 0.78 | @skip |
166174
| new | 0.77 | @skip |
167175
| new | 0.76 | @skip |
@@ -195,6 +203,7 @@ Scenario: Unhandled JS error with native stacktrace
195203
# On 0.74+ New Arch there is no JS stacktrace - see PLAT-12193
196204
And the event "exceptions.0.stacktrace.20.columnNumber" equals the version-dependent string:
197205
| arch | version | value |
206+
| new | 0.79 | @skip |
198207
| new | 0.78 | @skip |
199208
| new | 0.77 | @skip |
200209
| new | 0.76 | @skip |
@@ -204,6 +213,7 @@ Scenario: Unhandled JS error with native stacktrace
204213
| old | default | @not_null |
205214
And the event "exceptions.0.stacktrace.20.file" equals the version-dependent string:
206215
| arch | version | value |
216+
| new | 0.79 | @skip |
207217
| new | 0.78 | @skip |
208218
| new | 0.77 | @skip |
209219
| new | 0.76 | @skip |
@@ -213,6 +223,7 @@ Scenario: Unhandled JS error with native stacktrace
213223
| old | default | @not_null |
214224
And the event "exceptions.0.stacktrace.20.lineNumber" equals the version-dependent string:
215225
| arch | version | value |
226+
| new | 0.79 | @skip |
216227
| new | 0.78 | @skip |
217228
| new | 0.77 | @skip |
218229
| new | 0.76 | @skip |
@@ -222,6 +233,7 @@ Scenario: Unhandled JS error with native stacktrace
222233
| old | default | @not_null |
223234
And the event "exceptions.0.stacktrace.20.type" equals the version-dependent string:
224235
| arch | version | value |
236+
| new | 0.79 | @skip |
225237
| new | 0.78 | @skip |
226238
| new | 0.77 | @skip |
227239
| new | 0.76 | @skip |

test/react-native/features/unhandled-android.feature

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ Scenario: Reporting an Unhandled Native error
3333
And the event "unhandled" is true
3434
And the event "exceptions.0.errorClass" equals the version-dependent string:
3535
| arch | version | value |
36+
| new | 0.79 | Error |
3637
| new | 0.78 | Error |
3738
| new | 0.77 | Error |
3839
| new | 0.76 | Error |
@@ -42,6 +43,7 @@ Scenario: Reporting an Unhandled Native error
4243
| old | default | java.lang.RuntimeException |
4344
And the event "exceptions.0.type" equals the version-dependent string:
4445
| arch | version | value |
46+
| new | 0.79 | reactnativejs |
4547
| new | 0.78 | reactnativejs |
4648
| new | 0.77 | reactnativejs |
4749
| new | 0.76 | reactnativejs |
@@ -51,6 +53,7 @@ Scenario: Reporting an Unhandled Native error
5153
| old | default | android |
5254
And the event "exceptions.0.message" equals the version-dependent string:
5355
| arch | version | value |
56+
| new | 0.79 | Exception in HostFunction: UnhandledNativeErrorScenario |
5457
| new | 0.78 | Exception in HostFunction: UnhandledNativeErrorScenario |
5558
| new | 0.77 | Exception in HostFunction: UnhandledNativeErrorScenario |
5659
| new | 0.76 | Exception in HostFunction: UnhandledNativeErrorScenario |

test/react-native/features/unhandled-ios.feature

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ Scenario: Reporting an Unhandled Native error
3232
Then I wait to receive an error
3333
And the event "exceptions.0.errorClass" equals the version-dependent string:
3434
| arch | version | value |
35+
| new | 0.79 | NSException |
3536
| new | 0.78 | NSException |
3637
| new | 0.77 | NSException |
3738
| new | 0.76 | NSException |
@@ -45,6 +46,7 @@ Scenario: Reporting an Unhandled Native error
4546
And the event "unhandled" is true
4647
And the event "exceptions.0.message" equals the version-dependent string:
4748
| arch | version | value |
49+
| new | 0.79 | UnhandledNativeErrorScenario |
4850
| new | 0.78 | UnhandledNativeErrorScenario |
4951
| new | 0.77 | UnhandledNativeErrorScenario |
5052
| new | 0.76 | UnhandledNativeErrorScenario |

0 commit comments

Comments
 (0)