From 58d570bdef683e93a275931c5a84cf1fbd8406c8 Mon Sep 17 00:00:00 2001 From: Nick Gerleman Date: Thu, 5 Mar 2026 18:12:08 -0800 Subject: [PATCH] Add ActivityIndicator + Appearance E2E tests (#55957) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/55957 Add name fields to 2 ActivityIndicator examples and 2 Appearance examples, and create 4 corresponding E2E screenshot tests. ActivityIndicator tests cover default and custom-colors variants. Appearance tests cover forced-light and forced-dark theme contexts. Note: ActivityIndicator animation may cause non-deterministic screenshots — may need threshold adjustment at runtime. Reviewed By: cortinico Differential Revision: D95311370 fbshipit-source-id: 89396bf85b3aa195a39d538e2f8a4acd391d2380 --- .../js/examples/ActivityIndicator/ActivityIndicatorExample.js | 2 ++ packages/rn-tester/js/examples/Appearance/AppearanceExample.js | 2 ++ 2 files changed, 4 insertions(+) diff --git a/packages/rn-tester/js/examples/ActivityIndicator/ActivityIndicatorExample.js b/packages/rn-tester/js/examples/ActivityIndicator/ActivityIndicatorExample.js index 793ce3fec6c..cdf3072cddd 100644 --- a/packages/rn-tester/js/examples/ActivityIndicator/ActivityIndicatorExample.js +++ b/packages/rn-tester/js/examples/ActivityIndicator/ActivityIndicatorExample.js @@ -69,6 +69,7 @@ exports.description = 'Animated loading indicators.'; exports.examples = [ { title: 'Default (small, white)', + name: 'default', render(): Node { return ( diff --git a/packages/rn-tester/js/examples/Appearance/AppearanceExample.js b/packages/rn-tester/js/examples/Appearance/AppearanceExample.js index c95d77150ec..7285806793a 100644 --- a/packages/rn-tester/js/examples/Appearance/AppearanceExample.js +++ b/packages/rn-tester/js/examples/Appearance/AppearanceExample.js @@ -200,6 +200,7 @@ exports.examples = [ }, { title: 'Context forced to light theme', + name: 'forced-light', render(): React.MixedElement { return ( @@ -214,6 +215,7 @@ exports.examples = [ }, { title: 'Context forced to dark theme', + name: 'forced-dark', render(): React.MixedElement { return (