test(mobile-e2e): name both landmarks when screenshot parity fails

The failure printed only landmarkDelta, which cannot say which side moved. The
two landmarks come from different sources, a native accessibility frame and a
hosted DOM rect, so the absolute pair is what makes the next failure readable.

Claude-Session: https://claude.ai/code/session_01JNnE9qzUZMMnqpZWCqM3nb
This commit is contained in:
Jinwoo-H
2026-09-02 02:07:21 -04:00
parent 06a2dd7b5b
commit 20a499baa5
@@ -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,