Skip to content

shell e2e: show_tab and N's clicks press their element afresh, the meeting's page drawn again under them (#1412) - #1415

Open
kitokey-sam[bot] wants to merge 3 commits into
mainfrom
issue-1412-work
Open

kitokey-sam[bot] wants to merge 3 commits into
mainfrom
issue-1412-work

Conversation

@kitokey-sam

@kitokey-sam kitokey-sam Bot commented Nov 30, 2026 •

Copy link
Copy Markdown
Contributor

Module

modules/shell, and only it: scripts/e2e_window.py (show_tab).

  • This pull request touches a single module
  • ⚠️ Cross-module — the cross-module label is required, justification below

Deliverable

Out of cycle: a flake of the e2e's main(), #1412 (D104), assigned by the coordinator on 2026-11-30, after #1410. N raised in #1340's attest at 711445b and in #1389's twice; the shard stopped there, BH was not played and logs_read failed after it.

Closes #1412

What it changes

Before After
show_tab finds the tab, then calls is_displayed, get_attribute and click on that same handle show_tab reads « shown and not chosen » in one execute_script, then press()es the tab, which finds it afresh and retries

Cause. A meeting's page draws itself again when the shell writes one of its files. A handle found before that redraw is stale after it (StaleElementReferenceException), or is the old, hidden node (ElementNotInteractableException). Only wait_for and press() (#510, #1402) tolerate it.

Reference. Selenium's own guidance on stale elements: locate the element again at the moment of the action, never keep a reference across a DOM change; Playwright makes it the rule (locators resolved at each action, auto-retried). press() is this e2e's version of that; this change routes show_tab through it.

Left out. The UnboundLocalError (#1354) and FileNotFoundError (#1277) seen in N belonged to pull request heads, or were fixed already. The pr1222 Stale is in word_after_a_gap, not in N. N's 11 raw clicks (make-minutes, agree-local-*, redo-dialog-do ×8) were taken out on 2026-12-01 by the coordinator's decision: this red does not prove them. They move to #1416, with their own red. Other raw clicks are not touched.

Oracle

The patch m1412/redraw-at-first-touch.patch is on the e2e side and is never committed. In N only, the first time the driver acts on one of the meeting's tabs (is_displayed, get_attribute or click on meeting-tabs-tab-*), it draws the page again just before that action, using drawnMeeting = null; refresh() awaited. This is #1340's Stale: a tab found, then the page redrawn under it. A first patch that redrew 50 ms after each draw did not reproduce it: both runs gave N 55 ok and 0 FAIL. Its findings outside N are in #1412's comment and are not fixed here.

  • Red at c31ae68 (main d43ebc0) + patch, full run full-1412b-red:
    • #1412 oracle: the page drawn again before is_displayed on meeting-tabs-tab-minutes: True
    • then N. … raised StaleElementReferenceException: Message: Node with identifier '…' was not found, in show_tab (e2e_window.py:393), after only 10 ok.
  • Green at 56949ed + patch, full run full-1412b-green:
    • #1412 oracle: the page drawn again before click on meeting-tabs-tab-minutes: True, and the same for meeting-tabs-tab-transcript
    • N 55 ok, 0 FAIL; e2e: passed for the whole run.
  • The red run also failed one check outside N, in shard 4: announced raised NoSuchElementException. The green run did not. The oracle only redraws inside N, so this is noted, not attributed.
  • Head bf4a2a6 takes N's 11 clicks back out (shell e2e: N's 11 raw clicks outside press() (make-minutes, agree-local-*, redo-dialog-do), ElementNotInteractable #1416). Its diff against main is only show_tab's hunk, line for line the same as 56949ed's, so the red and the green above still hold for it. They were not run again.

Kind of oracle: the window's e2e (N is in main(), so its red and green go through the full e2e, full.sh, run by the coordinator).


Review budget

6 lines added, 3 removed (1 file).

  • Within budget

Contracts

  • No contract affected

Definition of Done

  • Lint, format: ruff (pre-commit)
  • The attest
  • The test sheet run by a verifier

Test sheet

Verifier: to be named by the coordinator. The sheet is theirs to write.

🤖 Generated with Claude Code

kitokey-sam Bot and others added 2 commits November 30, 2026 21:27
Agent-Session: d2b594d4-0672-4d99-bbfb-2850a391d6e5
…eting's page drawn again under them (#1412)

Agent-Session: d2b594d4-0672-4d99-bbfb-2850a391d6e5
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@napkinstack-agent napkinstack-agent Bot added the out-of-cycle Work outside the current cycle: an incident, a production defect; justified in the PR label Nov 30, 2026
…one its red proves (#1412)

The coordinator's call (2026-12-01, minimum): the 11 clicks of N moved to press() are not proven by the
targeted red, which redraws before a tab only. They go to a follow-up issue with their own red.

Agent-Session: 7368a2a3-2f44-4202-9dcb-56104a1d9256
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

out-of-cycle Work outside the current cycle: an incident, a production defect; justified in the PR

Projects

None yet

0 participants