Repository navigation
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
Open
kitokey-sam[bot] wants to merge 3 commits into
kitokey-sam[bot] wants to merge 3 commits into
Conversation
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>
…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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Module
modules/shell, and only it:scripts/e2e_window.py(show_tab).cross-modulelabel is required, justification belowDeliverable
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 andlogs_readfailed after it.Closes #1412
What it changes
show_tabfinds the tab, then callsis_displayed,get_attributeandclickon that same handleshow_tabreads « shown and not chosen » in oneexecute_script, thenpress()es the tab, which finds it afresh and retriesCause. 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). Onlywait_forandpress()(#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 routesshow_tabthrough it.Left out. The
UnboundLocalError(#1354) andFileNotFoundError(#1277) seen in N belonged to pull request heads, or were fixed already. The pr1222 Stale is inword_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.patchis 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_attributeorclickonmeeting-tabs-tab-*), it draws the page again just before that action, usingdrawnMeeting = 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.full-1412b-red:#1412 oracle: the page drawn again before is_displayed on meeting-tabs-tab-minutes: TrueN. … raised StaleElementReferenceException: Message: Node with identifier '…' was not found, inshow_tab(e2e_window.py:393), after only 10 ok.full-1412b-green:#1412 oracle: the page drawn again before click on meeting-tabs-tab-minutes: True, and the same formeeting-tabs-tab-transcripte2e: passedfor the whole run.announced raised NoSuchElementException. The green run did not. The oracle only redraws inside N, so this is noted, not attributed.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).
Contracts
Definition of Done
Test sheet
Verifier: to be named by the coordinator. The sheet is theirs to write.
🤖 Generated with Claude Code