mirror of
https://github.com/stablyai/orca.git
synced 2026-09-29 16:02:50 +00:00
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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user