Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FancyZones] UI testing #29453

Merged

Conversation

SeraphimaZykova
Copy link
Collaborator

Summary of the Pull Request

  • Added projects for FancyZones and FancyZonesEditor testing with a sample test to try it on the CI pipeline.
  • Updated dev docs

PR Checklist

Detailed Description of the Pull Request / Additional comments

Validation Steps Performed

@SeraphimaZykova SeraphimaZykova linked an issue Oct 27, 2023 that may be closed by this pull request
3 tasks
@SeraphimaZykova SeraphimaZykova marked this pull request as draft October 27, 2023 15:51
@github-actions

This comment has been minimized.

This comment has been minimized.

This comment has been minimized.

@SeraphimaZykova
Copy link
Collaborator Author

/azp run

Copy link

Azure Pipelines failed to run 1 pipeline(s).

This comment has been minimized.

@SeraphimaZykova
Copy link
Collaborator Author

/azp run

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

Copy link
Collaborator

@jaimecbernardo jaimecbernardo left a comment

Choose a reason for hiding this comment

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

Tests work for me as well. Good work!
I've added some code comments for changes I think we might need.

Some more general comments:

So, the Utils/IOUtils.cs from FancyZonesEditorCommon seems to be duplicated on FancyZonesEditor Utils/IOHelper? Is there a reason?

Lots of code seems to have been copied like enums (e.g.: LayoutType), but there's no comment to mention what they're mirroring from the original code. This will make it harder to maintain. Can you please add those comments?


#### [`trace.cpp`](/src/modules/fancyzones/lib/trace.cpp)
TODO
- Download and run Windows Application Driver installer from https://github.com/Microsoft/WinAppDriver/releases
Copy link
Collaborator

Choose a reason for hiding this comment

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

Which version?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I updated the doc and specified the version.

searchFolder: '$(Build.ArtifactStagingDirectory)'
vstestLocationMethod: 'location' # otherwise fails to find vstest.console.exe
#vstestLocation: '$(Agent.ToolsDirectory)\VsTest\**\${{ parameters.platform }}\tools\net462\Common7\IDE\Extensions\TestPlatform'
vstestLocation: '$(Agent.ToolsDirectory)\VsTest\17.10.0-preview-24080-01\x64\tools\net462\Common7\IDE\Extensions\TestPlatform'
Copy link
Collaborator

Choose a reason for hiding this comment

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

Won't this fail when visual studio updates in CI? It's got a hard coded version.

@@ -15,7 +15,8 @@ Param(
$referencedFileVersionsPerDll = @{}
$totalFailures = 0

Get-ChildItem $targetDir -Recurse -Filter *.deps.json | ForEach-Object {
Get-ChildItem $targetDir -Recurse -Filter *.deps.json -Exclude UITests-FancyZones* | ForEach-Object {
# Temporarily exclude FancyZones UI tests because of Appium.WebDriver dependencies
Copy link
Collaborator

Choose a reason for hiding this comment

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

I suppose these will only get built in the tests folder, so there's no chance of binary collisions, right?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

That's right, the output is in the tests folder.

<Import Project="..\..\..\Version.props" />

<PropertyGroup>
<TargetFramework>net7.0-windows</TargetFramework>
Copy link
Collaborator

Choose a reason for hiding this comment

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

We're on net8 already on main. This one is lagging behind.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Thanks for noticing, fixed!

This comment has been minimized.

Copy link
Collaborator

@jaimecbernardo jaimecbernardo left a comment

Choose a reason for hiding this comment

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

LGTM! Thank you for the tests! Good work!
Waiting to double check CI passes and then it's OK to merge.

@jaimecbernardo jaimecbernardo merged commit f6e7635 into main Mar 22, 2024
15 of 16 checks passed
@SeraphimaZykova SeraphimaZykova deleted the dev/seraphima/tests/29246-fancyzones-tests-initial-step branch March 22, 2024 12:14
Kissaki added a commit to Kissaki/PowerToys that referenced this pull request May 9, 2024
PR microsoft#29453 removed the `src/tests/win-app-driver` folder, but missed removing the sln file reference to the folders `README.md` file.
Kissaki added a commit to Kissaki/PowerToys that referenced this pull request May 9, 2024
PR microsoft#29453 removed the `src/tests/win-app-driver` folder, but missed removing the sln file reference to the folders `README.md` file.
jaimecbernardo pushed a commit that referenced this pull request May 31, 2024
PR #29453 removed the `src/tests/win-app-driver` folder, but missed removing the sln file reference to the folders `README.md` file.
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.

3 participants