mirror of
https://github.com/facebook/react-native.git
synced 2026-11-18 20:19:07 +00:00
Add image smoke-test examples and Maestro flows to RNTester (#57306)
Summary: Pull Request resolved: https://github.com/react/react-native/pull/57306 Adds three Image examples to RNTester plus matching Maestro end-to-end flows, covering image-loading behaviors that previously had little or no RNTester coverage: - Progressive JPEG (`progressiveRenderingEnabled`) - `blurRadius` combined with `Image.prefetch` (blur postprocessor over a prefetched bitmap) - Wide-gamut (Display-P3) vs sRGB and alpha transparency Each example renders status text (load/error) with stable testIDs so the Maestro flows can assert behavior; the visual cases also capture screenshots. Progressive JPEG is gated to Android (the prop is Android-only); the rest run on both platforms. Changelog: [Internal] Reviewed By: cortinico Differential Revision: D109316705 fbshipit-source-id: 922dfcf22a4a8ec54722a41524cd6c3039e1ada8
This commit is contained in:
1 parent
cb63782554
commit
05577d42d6
9 files changed
+298
-2
No files matched your search
@@ -60,9 +60,10 @@ async function executeFlowInFolder(flowFolder) {
|
||||
const filePath = `${flowFolder}/${file}`;
|
||||
if (fs.lstatSync(filePath).isDirectory()) {
|
||||
await executeFlowInFolder(filePath);
|
||||
} else {
|
||||
} else if (file.endsWith('.yml') || file.endsWith('.yaml')) {
|
||||
await executeFlowWithRetries(filePath, 0);
|
||||
}
|
||||
// Skip non-flow files (e.g. screenshot baselines under screenshots/).
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user