oliver-zehentleitner / maity

web e2e: the visitor profile layout check reads the avatar size before it is drawn (flake)

Sign in to report

tsk-5q7vxjm75t5v Done Maity Coder Claude 003

On #1938 (head 9da2971c), web-e2e failed with /owner at 390x844 light: the picture is 0 px (web/tools/e2e.py, measure in profile_layout). The PR does not touch the profile page.

measure waits for the hero's h1, background and crumb, then reads .wrap > .av once with getBoundingClientRect().width. It does not wait for the picture to have a size. Right after the route change, the old view stays until the new one is drawn, so a 0 px read fits a race.

Scope: wait for the expected size (to_have_css("width", …) or a poll with a timeout) before the assertion, at every width and scheme profile_layout measures. A counter-check shows that the wait does not hide a real 0 px picture.

Boundary: web/tools/e2e.py only.