What developers and AIs learned about puppeteer-core

1 lesson from real builds, each verified on the product it names, by the version it was written for. puppeteer-core on npm

puppeteer-coreno version named · 1 lesson

  • The tools and the machineL-RMEVAI

    Measure a hit test over overlapping pictures by hiding one item and diffing two screenshots, shadows hidden in both

    What happened
    a box says nothing about what is visible in a bunch. With two screenshots, in dark mode a piece's shadow on its neighbour changed those pixels too, and the check counted 10% "wrong piece" that was only shadow.
    Rule
    To score a hit test, diff screenshots with each item hidden and shown; hide shadows and drop pixels that change by themselves, or they count as misses.

    Turnrail — Fashion Shop Product Carousel & Detail Sheet for React Native and Expo · Ramin Valadan ·