Skip to content

(#1141) Update FlaUI tests with feedback#1142

Merged
vexx32 merged 6 commits into
chocolatey:developfrom
corbob:flaui-tests
Jun 2, 2026
Merged

(#1141) Update FlaUI tests with feedback#1142
vexx32 merged 6 commits into
chocolatey:developfrom
corbob:flaui-tests

Conversation

@corbob

@corbob corbob commented Jun 1, 2026

Copy link
Copy Markdown
Member

Description Of Changes

Update the FlaUI tests with feedback from #1134.

Motivation and Context

Try to follow best practices for FlaUI.

Testing

See testing directions for #1134

Operating Systems Testing

Dev VM 4

Change Types Made

  • Bug fix (non-breaking change).
  • Feature / Enhancement (non-breaking change).
  • Breaking change (fix or feature that could cause existing functionality to change).
  • Documentation changes.
  • PowerShell code changes.

Change Checklist

  • Requires a change to the documentation.
  • Documentation has been updated.
  • Tests to cover my changes, have been added.
  • All new and existing tests passed?
  • PowerShell code changes: PowerShell v3 compatibility checked?
  • All items are complete on the Definition of Done.

Related Issue

@corbob corbob requested a review from vexx32 June 1, 2026 21:25
@corbob corbob requested a review from a team as a code owner June 1, 2026 21:25
corbob added 6 commits June 1, 2026 14:34
Update the usage of UIA2 to be UIA3 as UIA3 is the recommended class.
chocolatey#1134 (comment)
Update the use of Find..Descendant to be Find..Child where applicable.
When we don't need a deeper descendant, Find..Child is much faster.

chocolatey#1134 (comment)
Update to the latest version of NUnit 4.x, to allow us to use
FlaUI.TestFixture. This requires some changes to existing assertions,
but allows greater clarity in the tests.

This also adds NUnit.Analyzers to allow us to make use of Visual Studio
suggestions for NUnit best practices.
Remove the base test class that we duplicated from FlaUI and instead use
FlaUI.TestUitility.

chocolatey#1134 (comment)
Add a few null checks to make errors in UITests easier to locate.
@Roemer

Roemer commented Jun 2, 2026

Copy link
Copy Markdown

Skimmed thru it, LGTM

@vexx32 vexx32 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These changes look good to me, thanks for sorting these out!

@vexx32 vexx32 merged commit 159c8c4 into chocolatey:develop Jun 2, 2026
2 checks passed
@corbob corbob deleted the flaui-tests branch June 2, 2026 15:54
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.

Update FlaUI tests with review comments from #1134

3 participants