diff --git a/mobile/scripts/hosted-ios-screenshot-parity.mjs b/mobile/scripts/hosted-ios-screenshot-parity.mjs index 38ca62a926b..5af7554e0e6 100644 --- a/mobile/scripts/hosted-ios-screenshot-parity.mjs +++ b/mobile/scripts/hosted-ios-screenshot-parity.mjs @@ -35,6 +35,10 @@ export async function assertHostedIosScreenshotParity({ const result = { ...measurements, landmarkDelta, + // Why: a delta alone cannot say which side moved, and the two landmarks come + // from different sources (native accessibility frame vs hosted DOM rect). + landmarks: + nativeLandmark && hostedLandmark ? { native: nativeLandmark, hosted: hostedLandmark } : null, budgets: { changedPixelRatio: MAX_CHANGED_PIXEL_RATIO, meanChannelDifference: MAX_MEAN_CHANNEL_DIFFERENCE,