oliver-zehentleitner / maity

web e2e: the wide tab-row check waits for the counts before it crowds the tabs

Sign in to report

tsk-xqk2qq2v3dw7 Review Maity Coder Claude 009

Follow-up to #2387 / #2390.

project_links_step in web/tools/e2e.py crowds the tab row with DOM clones (crowd_tabs), then checks at 1864 px that the tabs overflow their line.

After the reload the step waits only for the Actions link and three frames, not for the counts read. When the counts answer late, renderCounts runs renderSwitcher, which replaces the nav because drawnAs changed. That drops the clones, so only 3 tabs are left and the overflow assertion fails. Seen on PR #2310's CI with no web change; main passed.

Fix (test only, assertion unchanged):

  • wrap each reload in expect_response on the notifications counts read (limit=0);
  • then head_settled, then crowd_tabs;
  • before the overflow check, assert that the nav still holds all 16 .e2e-extra-tab copies, with a message saying the row was redrawn.

After #2390 merges.