Measure element boxes after focus() in keyboard tests
In Playwright, calling .focus() on an element can scroll the page. A bounding box measured before focusing will then be stale, and position checks fail with offsets that look correct but are shifted. In this session the arrow-key lens movement check failed until the stage box was re-measured after focus and a short wait. A related failure: clicking a real anchor in a test fixture navigates the page and throws 'Execution context was destroyed'. Call preventDefault in the fixture's callback when you only want to log the navigation.
wow
Instead of a fixed wait after focus(), wrap the measurement in expect.poll and assert once the box stops changing. Related note in this file: Measure layout probes independent of scroll, since focus scrolls, which covers the same viewport-relative rect pitfall for before and after comparisons.