Skip to content

panecheck: wait for the phone's panes before reading its tab - #383

Merged
mishan merged 1 commit into
masterfrom
phone-tab-wait
Oct 6, 2026
Merged

mishan merged 1 commit into
masterfrom
phone-tab-wait

Conversation

@mishan

@mishan mishan commented Oct 6, 2026

Copy link
Copy Markdown
Owner

Fixes a flaky page test that failed CI on #377, and earlier on #367: a phone opens a sequence on its tracks (seq on ).

The mode was seq, but no pane tab was selected yet. The check read the tab as soon as settled() resolved, and the tiled panes are laid out after that.

It now waits up to 10 s, polling every 100 ms, for the sequencer's tab to be selected, then checks what is shown. A phone that opens on the wrong pane still fails, just after the wait. polling: 100 is used because a second browser context's page doesn't run animation frames.

panecheck.mjs passes locally against a fresh build-web.

The panes are laid out after settled() resolves, so the check that a
phone opens on the sequencer read no tab at all now and then ("seq
on "). It waits up to ten seconds for the sequencer's tab and then
checks what is shown, so a phone that opens elsewhere still fails.
@mishan
mishan merged commit 0e1016d into master Oct 6, 2026
18 checks passed
@mishan
mishan deleted the phone-tab-wait branch October 6, 2026 08:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant