Skip to content

Conversation

guimafelipe
Copy link
Contributor

@guimafelipe guimafelipe commented Sep 2, 2025

This PR enables App notification tests.

The changes on this PR include:

  • Removing the scope :Class from the RunAs property for the unpackaged tests. This scope prevents the inheritance of the property value by the methods, making the methods being executed in the same scope as the main test, which is System. App notifications needs to be run in a non elevated process, which requires integrity level of medium or lower. For that reason, the previous configuration was breaking the tests, so now the test methods are run in RestrictedUser scope alongside the class methods, making everything run in the same process.
  • Adding the .testdef file and copying it as other tests.
  • Adding code to skip the tests in older Win10 versions.
  • Rewriting the bootstrap initialization code.

A microsoft employee must use /azp run to validate using the pipelines below.

WARNING:
Comments made by azure-pipelines bot maybe inaccurate.
Please see pipeline link to verify that the build is being ran.

For status checks on the main branch, please use TransportPackage-Foundation-PR
(https://microsoft.visualstudio.com/ProjectReunion/_build?definitionId=81063&_a=summary)
and run the build against your PR branch with the default parameters.

@lauren-ciha
Copy link
Member

/azp run

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@guimafelipe guimafelipe merged commit c7bdbfb into main Sep 22, 2025
34 checks passed
@guimafelipe guimafelipe deleted the user/felipeda/appnotificationtests2 branch September 22, 2025 20:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants