-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
[Testing] Enabling more UI Tests by removing platform specific condition - 3 #27501
[Testing] Enabling more UI Tests by removing platform specific condition - 3 #27501
Conversation
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.
Copilot reviewed 18 out of 29 changed files in this pull request and generated no comments.
Files not reviewed (11)
- src/Controls/tests/TestCases.HostApp/Issues/Issue22630.xaml: Language not supported
- src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/Issue21173.cs: Evaluated as low risk
- src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/Issue22042.cs: Evaluated as low risk
- src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/Issue21394.cs: Evaluated as low risk
- src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/Issue21202.cs: Evaluated as low risk
- src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/Issue21314.cs: Evaluated as low risk
- src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/Issue22183.cs: Evaluated as low risk
- src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/Issue22937.cs: Evaluated as low risk
- src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/Issue22750.cs: Evaluated as low risk
- src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/Issue21787.cs: Evaluated as low risk
- src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/Issue21706.cs: Evaluated as low risk
Comments suppressed due to low confidence (1)
src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/Issue2241.cs:1
- [nitpick] The comment could be clearer: 'The test fails on Windows and MacCatalyst because the SetOrientation method is only supported on mobile platforms (iOS and Android).'
#if IOS || ANDROID //The test fails on Windows and MacCatalyst because the SetOrientation method, which is intended to change the device orientation, is only supported on mobile platforms iOS and Android.
/azp run |
Azure Pipelines successfully started running 3 pipeline(s). |
@@ -12,7 +12,6 @@ public Issue21173(TestDevice device) | |||
: base(device) | |||
{ } | |||
|
|||
#if ANDROID | |||
[Test] | |||
[Category(UITestCategories.Border)] | |||
public void BorderWithRoundRectangleShouldRoundCornersOfContentWithinIt() |
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.
This test is failing on Windows:
at UITest.Appium.HelperExtensions.Wait(Func`1 query, Func`2 satisfactory, String timeoutMessage, Nullable`1 timeout, Nullable`1 retryFrequency) in /_/src/TestUtils/src/UITest.Appium/HelperExtensions.cs:line 2311
at UITest.Appium.HelperExtensions.WaitForAtLeastOne(Func`1 query, String timeoutMessage, Nullable`1 timeout, Nullable`1 retryFrequency) in /_/src/TestUtils/src/UITest.Appium/HelperExtensions.cs:line 2326
at UITest.Appium.HelperExtensions.WaitForElement(IApp app, String marked, String timeoutMessage, Nullable`1 timeout, Nullable`1 retryFrequency, Nullable`1 postTimeout) in /_/src/TestUtils/src/UITest.Appium/HelperExtensions.cs:line 663
at Microsoft.Maui.TestCases.Tests.Issues.Issue21173.BorderWithRoundRectangleShouldRoundCornersOfContentWithinIt() in /_/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/Issue21173.cs:line 19
at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor)
at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr)
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.
Modified the test to ensure it runs on Windows and committed the code changes.
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.
Nice! The snapshot on Windows is pending and available on the latest build.
@@ -1,5 +1,4 @@ | |||
#if IOS | |||
using NUnit.Framework; | |||
using NUnit.Framework; |
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.
Pending snapshots. Already available on the latest build.
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 have committed this snapshot in the latest changes.
/azp run |
Azure Pipelines successfully started running 3 pipeline(s). |
@@ -28,5 +27,4 @@ public void RadioButtonUpdateValueInsideBorder() | |||
VerifyScreenshot("RadioButtonUpdateValueInsideBorderYes"); |
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.
Pending snapshot on macOS.
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.
The images generated for Mac from this CI have not proper, Could we attempt to retrigger the CI for this?
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.
@@ -12,7 +12,6 @@ public Issue21173(TestDevice device) | |||
: base(device) | |||
{ } | |||
|
|||
#if ANDROID | |||
[Test] | |||
[Category(UITestCategories.Border)] | |||
public void BorderWithRoundRectangleShouldRoundCornersOfContentWithinIt() |
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.
Nice! The snapshot on Windows is pending and available on the latest build.
@@ -23,5 +22,4 @@ public void ToolbarItemFontColorDynamicUpdate() | |||
VerifyScreenshot(); |
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.
Pending snapshot on Mac.
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.
The images generated for Mac from this CI have not proper, Could we attempt to retrigger the CI for this?
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.
Better wait to #27531
/azp run |
Azure Pipelines successfully started running 3 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.
We've changed the logic for taking screenshots on macOS. It has been optimized, now instead of setting the App to full screen and taking the screenshot, we directly get the Window position and size and create a snapshot by cropping the App's content from the screen.
This requires re-committing the updated macOS screenshots.
Example:
I have updated the current Mac snapshots to reflect the latest changes. |
/azp run |
Azure Pipelines successfully started running 3 pipeline(s). |
@@ -28,5 +27,4 @@ public void RadioButtonUpdateValueInsideBorder() | |||
VerifyScreenshot("RadioButtonUpdateValueInsideBorderYes"); |
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.
@jsuarezruiz I have updated the current Mac snapshots to reflect the latest changes. |
/azp run |
Azure Pipelines successfully started running 3 pipeline(s). |
Description of Change
The tests, previously added for specific platforms alone, now we are reviewed, and enabled the tests in all applicable platforms with the Appium framework. We are going to enable tests in blocks in different PRs. This is the 3rd group of tests enabled.
Test Cases:
Fixes #22902