Skip to content

test: Fix several flaky tests - #10388

Merged
gonfunko merged 2 commits into
mainfrom
frosted-flakes
Aug 28, 2026
Merged

gonfunko merged 2 commits into
mainfrom
frosted-flakes

Conversation

@gonfunko

Copy link
Copy Markdown
Contributor

The basics

The details

Proposed Changes

This PR resolves various leaked state and potentially invalid assertions in the test suite that could cause flakes. These were identified with LLM assistance and manually reviewed. The shortcut items test was flaky, but it was best resolved by using the real focus manager instead of a stub, so the changes there are more extensive but also make the test more robust. I did remove two tests from it that weren't doing anything useful, for Page Up/Down in a flyout; since child blocks can't be focused in a flyout, you can't set up a scenario to test that they don't attempt to focus the root/end of the stack, and as the comment used to note, assertions about what they do do are tested elsewhere.

@gonfunko
gonfunko requested a review from a team as a code owner August 28, 2026 21:20
@gonfunko
gonfunko requested a review from lizschwab August 28, 2026 21:20
@gonfunko
gonfunko merged commit 74542e1 into main Aug 28, 2026
11 checks passed
@gonfunko
gonfunko deleted the frosted-flakes branch August 28, 2026 22:44
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.

2 participants