Skip to content

CmdPal: Fix object initialization in Shelf tests - #50921

Merged
Michael Jolley (michaeljolley) merged 1 commit into
mainfrom
dev/jpolasek/b/cmdpal-fix-shelf-test-object-initialization
Sep 30, 2026
Merged

Michael Jolley (michaeljolley) merged 1 commit into
mainfrom
dev/jpolasek/b/cmdpal-fix-shelf-test-object-initialization

Conversation

@jiripolasek

Copy link
Copy Markdown
Collaborator

Summary of the Pull Request

Initialize _itemSnapshot in the shelf unit test to match normal construction. The fixture bypasses constructors and field initializers, leaving the snapshot null and causing four test failures with the cleanup added in #50833.

This will be properly fixed with upcoming refactor.

PR Checklist

  • Closes: #xxx
  • Communication: I've discussed this with core contributors already. If the work hasn't been agreed, this work might be rejected
  • Tests: Added/updated and all pass
  • Localization: All end-user-facing strings can be localized
  • Dev docs: Added/updated
  • New binaries: Added on the required places
  • Documentation updated: If checked, please file a pull request on our docs repo and link it here: #xxx

Detailed Description of the Pull Request / Additional comments

Validation Steps Performed

@github-actions

Copy link
Copy Markdown

🧭 PR intake

Visual evidence: Not needed — The changed files do not indicate a visible UI change. No visual evidence is expected.

Recommendation

Link the issue this PR fixes using a closing keyword such as Closes #123.

✅ Ready for review

This PR passed the automated intake checks and is ready for maintainer review.

Automated PR intake; PowerToys maintainers make final decisions.

@michaeljolley
Michael Jolley (michaeljolley) merged commit e09d5ad into main Sep 30, 2026
12 checks passed
@michaeljolley
Michael Jolley (michaeljolley) deleted the dev/jpolasek/b/cmdpal-fix-shelf-test-object-initialization branch September 30, 2026 22:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Product-Command Palette Refers to the Command Palette utility Ready for review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants