发布

  • [NA] [QA] test(e2e): retry model-picker click to fix Playground flake (#7401)

    frostbyte_neo 发布于 2026-07-09 12:02:26 +00:00

    setModelForVariant clicked the model picker once then waited for the listbox,
    but on higher-latency environments the first click sometimes registers as a
    hover (surfacing a tooltip instead of opening the popover), so the listbox
    never appears and the step times out. Wrap the click in an expect().toPass()
    loop that re-clicks until the popover actually opens.

    Observed as a repeated failure (initial + 2 retries) on the Bayer stsaas
    regression run; the test has a long clean streak everywhere else and is flagged
    flaky in TestOps. Change is strictly safer than the original (retries the click
    rather than firing once). Verified green locally 3x.

    Co-authored-by: Claude Opus 4.8 noreply@anthropic.com

    下载附件