GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||||||||||||||||||
GeezerVison is showing github.com — test(app): wait for focus rescue before selecting text in the quote action test by Hona · Pull Request #65121 · anomalyco/opencode Conversation
Member
Symptom
History
Cause#64909 added focus rescue. The chip row and the composer dock became focus scopes ( The test selected timeline text as soon as the chip count reached 0, so the two raced: sequenceDiagram
participant T as Test
participant P as Page
T->>P: click Remove attachment
P->>P: chip row removed, focus falls to body
P-->>P: setTimeout(rescue)
T->>P: selectAllChildren(first sentence)
P->>P: rescue() focuses the editor, caret collapses the selection
P->>P: selectionchange (collapsed), toolbar never opens
T--xP: expect(toolbar).toBeVisible() times out
Event log from an instrumented failing run (ms): The window is about 10 ms after the click, so a user cannot select text inside it. The product behaviour (focus returns to the editor) is what #64909 intends. FixWait for the app's own signal before selecting, as the test already does after closing a quote comment: await expect(chips).toHaveCount(0) // Removing the last chip hands focus back to the editor a task later, and its caret would replace the next selection. await expect(editor).toBeFocused() Before and afterBuilt mode,
No feature flag: the change is test-only.
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The fix works: I ran the test alone 30 times with retries off. On the base it failed all 30 runs at the second Public API: unchanged (test-only). No concerns.
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactionsUh oh!
There was an error while loading. Please reload this page.
huuhabn
pushed a commit
to huuhabn/opencode
that referenced
this pull request
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
ReviewersUh oh!
There was an error while loading. Please reload this page. AssigneesNo one assignedLabels
None yet
ProjectsMilestoneNo milestoneDevelopmentSuccessfully merging this pull request may close these issues. Uh oh!
There was an error while loading. Please reload this page. 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. | |||||||||||||||||||||||||
| You are visitor 01402775 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |