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

[Testing] Enabling more UI Tests by removing platform specific condition - 4 #27561

Merged

Conversation

HarishKumarSF4517
Copy link
Contributor

@HarishKumarSF4517 HarishKumarSF4517 commented Feb 4, 2025

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:

  • CarouselViewUITests.UpdateCurrentItem
  • Issue10645
  • Issue10660
  • Issue17694
  • Issue20439
  • Issue20443
  • Issue20696
  • Issue20736
  • Issue20842
  • Issue20858

Fixes #22902

@dotnet-policy-service dotnet-policy-service bot added the community ✨ Community Contribution label Feb 4, 2025
Copy link
Contributor

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.

@anandhan-rajagopal anandhan-rajagopal added area-testing Unit tests, device tests partner/syncfusion Issues / PR's with Syncfusion collaboration labels Feb 4, 2025
@HarishKumarSF4517 HarishKumarSF4517 marked this pull request as ready for review February 4, 2025 14:20
@Copilot Copilot bot review requested due to automatic review settings February 4, 2025 14:20
@HarishKumarSF4517 HarishKumarSF4517 requested a review from a team as a code owner February 4, 2025 14:20

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()
@jsuarezruiz
Copy link
Contributor

/azp run

Copy link

Azure Pipelines successfully started running 3 pipeline(s).

@jsuarezruiz
Copy link
Contributor

/azp run

Copy link

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
Copy link
Contributor

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

Copy link
Contributor Author

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();
Copy link
Contributor

Choose a reason for hiding this comment

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

Pending snapshot on macOS.

Copy link
Contributor Author

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();
Copy link
Contributor

Choose a reason for hiding this comment

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

Pending snapshot on macOS.

Copy link
Contributor Author

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

Copy link
Contributor

Choose a reason for hiding this comment

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

Pending on macOS.

Copy link
Contributor

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;
Copy link
Contributor

Choose a reason for hiding this comment

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

Pending on Windows.

Copy link
Contributor Author

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

Copy link
Contributor Author

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.

@jsuarezruiz
Copy link
Contributor

jsuarezruiz commented Feb 7, 2025

/azp run

Copy link

Azure Pipelines successfully started running 3 pipeline(s).

Copy link
Contributor

@jsuarezruiz jsuarezruiz left a 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:

Issue17694Test
image

Copy link

Azure Pipelines successfully started running 3 pipeline(s).

@jsuarezruiz
Copy link
Contributor

/azp run

Copy link

Azure Pipelines successfully started running 3 pipeline(s).

@@ -1,5 +1,4 @@
#if IOS || WINDOWS
using NUnit.Framework;
using NUnit.Framework;
Copy link
Contributor

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?

Copy link
Contributor Author

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.

Copy link
Contributor

Choose a reason for hiding this comment

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

The test is failing on Android:
image

And also keeps failing on macOS, small differences. Could yo review it?

Copy link
Contributor Author

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.

@jsuarezruiz
Copy link
Contributor

/azp run

Copy link

Azure Pipelines successfully started running 3 pipeline(s).

@@ -1,5 +1,4 @@
#if IOS || WINDOWS
using NUnit.Framework;
using NUnit.Framework;
Copy link
Contributor

Choose a reason for hiding this comment

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

The test is failing on Android:
image

And also keeps failing on macOS, small differences. Could yo review it?

@HarishKumarSF4517
Copy link
Contributor Author

Hi @jsuarezruiz ,
I have reviewed the Issue20736 it now working fine in macOS but for Android it fails randomly. I am ensuring now, once after resolve I will notify you

@HarishKumarSF4517
Copy link
Contributor Author

Hi @jsuarezruiz ,
I have resolved and Updated the changes for Issue20736

@jfversluis
Copy link
Member

/azp run

Copy link

Azure Pipelines successfully started running 3 pipeline(s).

@jsuarezruiz
Copy link
Contributor

/azp run

Copy link

Azure Pipelines successfully started running 3 pipeline(s).

@jsuarezruiz
Copy link
Contributor

/azp run

Copy link

Azure Pipelines successfully started running 3 pipeline(s).

@jsuarezruiz
Copy link
Contributor

/rebase

@github-actions github-actions bot force-pushed the enable-xamarinuitest-harish30 branch from 3281c24 to 8b4e2ef Compare February 21, 2025 10:32
@jsuarezruiz
Copy link
Contributor

/azp run

Copy link

Azure Pipelines successfully started running 3 pipeline(s).

@jfversluis jfversluis dismissed jsuarezruiz’s stale review February 22, 2025 21:05

Feedback addressed

@jfversluis jfversluis merged commit 202e523 into dotnet:main Feb 22, 2025
123 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-testing Unit tests, device tests community ✨ Community Contribution partner/syncfusion Issues / PR's with Syncfusion collaboration
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[TEST] Review all (UI) Tests and remove platform-specific runs where possible
4 participants