-
Notifications
You must be signed in to change notification settings - Fork 6.6k
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
[FancyZones] UI testing #29453
Conversation
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
/azp run |
Azure Pipelines failed to run 1 pipeline(s). |
This comment has been minimized.
This comment has been minimized.
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
There was a problem hiding this 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?
doc/devdocs/modules/fancyzones.md
Outdated
|
||
#### [`trace.cpp`](/src/modules/fancyzones/lib/trace.cpp) | ||
TODO | ||
- Download and run Windows Application Driver installer from https://github.com/Microsoft/WinAppDriver/releases |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Which version?
There was a problem hiding this comment.
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' |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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> |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for noticing, fixed!
src/modules/fancyzones/UITests-FancyZonesEditor/UITests-FancyZonesEditor.csproj
Fixed
Show fixed
Hide fixed
This comment has been minimized.
This comment has been minimized.
There was a problem hiding this 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.
PR microsoft#29453 removed the `src/tests/win-app-driver` folder, but missed removing the sln file reference to the folders `README.md` file.
PR microsoft#29453 removed the `src/tests/win-app-driver` folder, but missed removing the sln file reference to the folders `README.md` file.
PR #29453 removed the `src/tests/win-app-driver` folder, but missed removing the sln file reference to the folders `README.md` file.
Summary of the Pull Request
PR Checklist
Detailed Description of the Pull Request / Additional comments
Validation Steps Performed