-
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 - 4 #27561
[Testing] Enabling more UI Tests by removing platform specific condition - 4 #27561
Conversation
Hey there @HarishKumarSF4517! Thank you so much for your PR! Someone from the team will get assigned to your PR shortly and we'll get it reviewed. |
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 13 out of 19 changed files in this pull request and generated no comments.
Files not reviewed (6)
- src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/Issue20858.cs: Evaluated as low risk
- src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/Issue20696.cs: Evaluated as low risk
- src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/Issue17694.cs: Evaluated as low risk
- src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/Issue10660.cs: Evaluated as low risk
- src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/Issue20736.cs: Evaluated as low risk
- src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/Issue10645.cs: Evaluated as low risk
Comments suppressed due to low confidence (2)
src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/Issue20842.cs:25
- The removal of await Task.Delay calls may lead to race conditions in the test. Consider re-adding the delay to ensure the test runs reliably.
App.Tap(scrollDownButton);
src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/Issue20439.cs:26
- Removing the try-finally block might cause issues if the Reset method is necessary for cleaning up after the test. Consider re-adding the try-finally block to ensure proper cleanup.
public void ErrorShouldNotBeThrown()
/azp run |
Azure Pipelines successfully started running 3 pipeline(s). |
/azp run |
Azure Pipelines successfully started running 3 pipeline(s). |
@@ -1,5 +1,4 @@ | |||
#if ANDROID || IOS | |||
|
|||
#if TEST_FAILS_ON_CATALYST //DragCoordinates is not working on Catalyst |
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 can enabled after merge #27339
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.
Hi @jsuarezruiz ,
I have enabled the test for mac and also updated the required snapshot
@@ -25,5 +24,4 @@ public void Issue17694Test() | |||
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 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.
Updated mac snapshot for Issue17694
@@ -22,5 +21,4 @@ public void Issue10645Test() | |||
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 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.
Updated mac snapshot for Issue10645
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 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.
Pending on macOS.
@@ -1,5 +1,4 @@ | |||
#if ANDROID || IOS | |||
|
|||
#if TEST_FAILS_ON_CATALYST //DragCoordinates is not working on Catalyst | |||
using NUnit.Framework; | |||
using UITest.Appium; | |||
using UITest.Core; |
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 on Windows.
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.
Updated mac snapshot for Issue20443
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.
Hi @jsuarezruiz ,
Now I have enabled the test for Mac, now you can review it.
/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:
Azure Pipelines successfully started running 3 pipeline(s). |
/azp run |
Azure Pipelines successfully started running 3 pipeline(s). |
@@ -1,5 +1,4 @@ | |||
#if IOS || WINDOWS | |||
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.
This test is failing on Mac:
Snapshot different than baseline: EditorScrollingWhenEnclosedInBorder.png (0.74% difference)
Could you review it and update the snapshot if necessary?
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.
Hi @jsuarezruiz,
I have reviewed the test and confirmed that the snapshot was necessary. I have also updated the snapshot from 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.
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.
Hi @jsuarezruiz ,
I have made changes in the Test.
/azp run |
Azure Pipelines successfully started running 3 pipeline(s). |
@@ -1,5 +1,4 @@ | |||
#if IOS || WINDOWS | |||
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.
Hi @jsuarezruiz , |
Hi @jsuarezruiz , |
/azp run |
Azure Pipelines successfully started running 3 pipeline(s). |
/azp run |
Azure Pipelines successfully started running 3 pipeline(s). |
/azp run |
Azure Pipelines successfully started running 3 pipeline(s). |
/rebase |
3281c24
to
8b4e2ef
Compare
/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 4th group of tests enabled.
Test Cases:
Fixes #22902