Add ActivityIndicator + Appearance E2E tests (#55957)

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
This commit is contained in:
Nick Gerleman authored and meta-codesync[bot] committed 2026-03-05 18:12:08 -08:00
1 parent 81c3a57206
commit 58d570bdef
2 files changed
+4

No files matched your search

@@ -69,6 +69,7 @@ exports.description = 'Animated loading indicators.';
exports.examples = [
{
title: 'Default (small, white)',
name: 'default',
render(): Node {
return (
<ActivityIndicator
@@ -93,6 +94,7 @@ exports.examples = [
},
{
title: 'Custom colors',
name: 'custom-colors',
render(): Node {
return (
<View style={styles.horizontal}>
@@ -200,6 +200,7 @@ exports.examples = [
},
{
title: 'Context forced to light theme',
name: 'forced-light',
render(): React.MixedElement {
return (
<RNTesterThemeContext.Provider value={themes.light}>
@@ -214,6 +215,7 @@ exports.examples = [
},
{
title: 'Context forced to dark theme',
name: 'forced-dark',
render(): React.MixedElement {
return (
<RNTesterThemeContext.Provider value={themes.dark}>