Skip to content

Commit 7e7b1f7

Browse files
committed
RN fixture update: Disable certain scenarios in hermes until PLAT-8236
1 parent 2c84b58 commit 7e7b1f7

File tree

6 files changed

+27
-11
lines changed

6 files changed

+27
-11
lines changed

.buildkite/react-native-pipeline.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -109,8 +109,8 @@ steps:
109109
artifact_paths:
110110
- build/rn0.67-hermes.apk
111111

112-
- label: ':ios: Build RN 0.67 ipa'
113-
key: "rn-0-67-ipa"
112+
- label: ':ios: Build RN 0.67 (hermes) ipa'
113+
key: "rn-0-67-hermes-ipa"
114114
timeout_in_minutes: 60
115115
agents:
116116
queue: "opensource-arm-mac-cocoa-12"
@@ -363,6 +363,7 @@ steps:
363363
- --fail-fast
364364
env:
365365
SKIP_NAVIGATION_SCENARIOS: "true"
366+
HERMES: "true"
366367
concurrency: 9
367368
concurrency_group: 'browserstack-app'
368369
concurrency_method: eager
@@ -415,8 +416,8 @@ steps:
415416
concurrency_group: 'browserstack-app'
416417
concurrency_method: eager
417418

418-
- label: ':ios: RN 0.67 iOS 14 end-to-end tests'
419-
depends_on: "rn-0-67-ipa"
419+
- label: ':ios: RN 0.67 (hermes) iOS 14 end-to-end tests'
420+
depends_on: "rn-0-67-hermes-ipa"
420421
timeout_in_minutes: 60
421422
plugins:
422423
artifacts#v1.5.0:
@@ -435,6 +436,7 @@ steps:
435436
- --fail-fast
436437
env:
437438
SKIP_NAVIGATION_SCENARIOS: "true"
439+
HERMES: "true"
438440
concurrency: 9
439441
concurrency_group: 'browserstack-app'
440442
concurrency_method: eager

docker-compose.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -244,6 +244,7 @@ services:
244244
BROWSER_STACK_USERNAME:
245245
BROWSER_STACK_ACCESS_KEY:
246246
SKIP_NAVIGATION_SCENARIOS:
247+
HERMES:
247248
networks:
248249
default:
249250
aliases:

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

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
Feature: Native stacktrace is parsed for promise rejections
22

3-
@android_only
3+
# Skip until PLAT-8236 is complete
4+
@android_only @skip_hermes
45
Scenario: Handled JS error with native stacktrace
56
When I run "NativeStackHandledScenario"
67
Then I wait to receive an error
@@ -31,7 +32,8 @@ Scenario: Handled JS error with native stacktrace
3132
And the error payload field "events.0.exceptions.0.stacktrace.13.lineNumber" is not null
3233
And the error payload field "events.0.exceptions.0.stacktrace.13.type" is null
3334

34-
@android_only
35+
# Skip until PLAT-8236 is complete
36+
@android_only @skip_hermes
3537
Scenario: Unhandled JS error with native stacktrace
3638
When I run "NativeStackUnhandledScenario"
3739
Then I wait to receive an error
@@ -69,8 +71,9 @@ Scenario: Unhandled JS error with native stacktrace
6971
# And the error payload field "events.0.exceptions.1.stacktrace.1.lineNumber" equals 1
7072
# And the error payload field "events.0.exceptions.1.stacktrace.2.lineNumber" equals 2
7173

74+
# Skip until PLAT-8236 is complete
7275
@skip
73-
@ios_only
76+
@ios_only @skip_hermes
7477
Scenario: Handled JS error with native stacktrace
7578
When I run "NativeStackHandledScenario"
7679
Then I wait to receive an error
@@ -99,7 +102,8 @@ Scenario: Handled JS error with native stacktrace
99102
And the error payload field "events.0.exceptions.0.stacktrace.20.lineNumber" is not null
100103
And the error payload field "events.0.exceptions.0.stacktrace.20.type" is null
101104

102-
@ios_only
105+
# Skip until PLAT-8236 is complete
106+
@ios_only @skip_hermes
103107
Scenario: Unhandled JS error with native stacktrace
104108
When I run "NativeStackUnhandledScenario"
105109
Then I wait to receive an error

test/react-native/features/override_unhandled.feature

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ Scenario: Non-fatal error overridden to unhandled
1111
And the event "session.events.handled" equals 0
1212
And the event "session.events.unhandled" equals 1
1313

14+
# Skip until PLAT-8236 is complete
15+
@skip_hermes
1416
Scenario: Fatal error overridden to handled
1517
When I run "UnhandledOverrideJsErrorScenario" and relaunch the crashed app
1618
And I configure Bugsnag for "UnhandledOverrideJsErrorScenario"

test/react-native/features/support/env.rb

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,18 @@
44
end
55

66
Before('@android_only') do |scenario|
7-
skip_this_scenario("Skipping scenario") if Maze.driver.capabilities["os"] == 'ios'
7+
skip_this_scenario("Skipping scenario") if Maze.driver.capabilities["os"].eql?('ios')
88
end
99

1010
Before('@ios_only') do |scenario|
11-
skip_this_scenario("Skipping scenario") if Maze.driver.capabilities["os"] == 'android'
11+
skip_this_scenario("Skipping scenario") if Maze.driver.capabilities["os"].eql?('android')
1212
end
1313

1414
Before('@navigation') do |scenario|
15-
skip_this_scenario("Skipping scenario") if ENV['SKIP_NAVIGATION_SCENARIOS'] == 'true'
15+
skip_this_scenario("Skipping scenario") if ENV['SKIP_NAVIGATION_SCENARIOS'].eql?('true')
16+
end
17+
18+
# Require until PLAT-8236 is implemented
19+
Before('@skip_hermes') do |_scenario|
20+
skip_this_scenario("Skipping scenario") if ENV['HERMES'].eql?('true')
1621
end

test/react-native/features/unhandled.feature

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ Scenario: Catching an Unhandled error
99
And the event "unhandled" is true
1010
And the exception "message" equals "UnhandledJsErrorScenario"
1111

12+
# Skip until PLAT-8236 is complete
13+
@skip_hermes
1214
Scenario: Catching an Unhandled promise rejection
1315
When I run "UnhandledJsPromiseRejectionScenario"
1416
Then I wait to receive an error

0 commit comments

Comments
 (0)