Skip to content

Investigate, Fix failing ImageAssert unit tests #2952

Description

@jonpryor

When migrating to target .NET 9 (#2899), @kazo0 discovered that not all tests were actually being executed! In particular, 74 tests were not run on 90f328b (main) vs. 9206477 (from #2899), and those 74 tests were not added in #2899.

Reportedly 5e7a219 caused the missing tests to be found:

diff --git a/build/ci/stage-build-uitests-wasm.yml b/build/ci/stage-build-uitests-wasm.yml
index 9c2a9e163..125b6f25c 100644
--- a/build/ci/stage-build-uitests-wasm.yml
+++ b/build/ci/stage-build-uitests-wasm.yml
@@ -36,6 +36,7 @@ jobs:
       testResultsFormat: 'NUnit'
       testResultsFiles: '$(build.sourcesdirectory)/build/TestResult.xml'
       failTaskOnFailedTests: true
+      failTaskOnMissingResultsFile: true

Once these tests were enabled, at least 17 of them were found to be failing.

In the interest of expediency, we are ignoring the following tests:

  • Given_ContentDialog.When_ComplexContentDialog
  • Given_ContentDialog.When_ComplexContentDialogNavigateSecondPage
  • Given_ContentDialog.When_SimpleContentDialog("SimpleDialogCodebehindWithCancelButton",0,False)
  • Given_ContentDialog.When_SimpleContentDialog("SimpleDialogCodebehindWithCancelButton",3,True)
  • Given_FlyoutDialog.When_FlyoutsButton("FlyoutDialogCodebehindBackgroundButton",0,False)
  • Given_FlyoutDialog.When_FlyoutsButton("FlyoutDialogCodebehindButton",0,False)
  • Given_FlyoutDialog.When_FlyoutsButton("FlyoutDialogCodebehindWithCancelButton",3,True)
  • Given_FlyoutDialog.When_FlyoutsButton("FlyoutDialogXamlButton",0,False)
  • Given_MessageDialog.When_MessageDialogFromXAML
  • Given_PageNavigation.When_PageNavigationCodebehind
  • Given_PageNavigation.When_PageNavigationDependsn
  • Given_PageNavigation.When_PageNavigationViewModel
  • Given_PageNavigation.When_PageNavigationXAML
  • Given_PageNavigationRegistered.When_PageNavigationRegisteredRoot
  • Given_PageNavigationRegistered.When_PageNavigationRegisteredViewModel

Investigate why these tests are failing and re-enable them.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/bugSomething isn't workingtriage/untriagedIndicates an issue requires triaging or verification.

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions