Skip to content

[Testing] Enabling more UI Tests by removing platform specific condition - 1 - #27454

Merged
jfversluis merged 25 commits into
mainfrom
unknown repository
Feb 14, 2025
Merged

jfversluis merged 25 commits into
mainfrom
unknown repository

Conversation

@HarishKumarSF4517

@HarishKumarSF4517 HarishKumarSF4517 commented Jan 29, 2025

Copy link
Copy Markdown
Contributor

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 1st group of tests enabled.

Test Cases:

  • Issue13551
  • Issue13616
  • Issue1426
  • Issue16094
  • Issue16918
  • Issue17366
  • Issue17400
  • Issue17865
  • Issue18282
  • Issue18720
  • Issue18720DatePicker
  • Issue18720TimePicker
  • Issue18720Editor
  • Issue1908
  • Issue19379
  • Issue19500
  • Issue19556
  • Issue19592
  • Issue19657
  • Issue19803
  • Issue19877
  • Issue19926
  • Issue20294

Fixes #22902

@dotnet-policy-service dotnet-policy-service Bot added the community ✨ Community Contribution label Jan 29, 2025
@ghost ghost added partner/syncfusion Issues / PR's with Syncfusion collaboration area-testing Unit tests, device tests labels Jan 30, 2025
@HarishKumarSF4517
HarishKumarSF4517 marked this pull request as ready for review January 30, 2025 06:25
Copilot AI review requested due to automatic review settings January 30, 2025 06:25
@HarishKumarSF4517
HarishKumarSF4517 requested a review from a team as a code owner January 30, 2025 06:25

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot reviewed 23 out of 38 changed files in this pull request and generated 1 comment.

Files not reviewed (15)
  • src/Controls/tests/TestCases.HostApp/Issues/Issue19379.xaml: Language not supported
  • src/Controls/tests/TestCases.HostApp/Issues/Issue19877.xaml: Language not supported
  • src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/Issue17865.cs: Evaluated as low risk
  • src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/Issue13616.cs: Evaluated as low risk
  • src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/Issue1426.cs: Evaluated as low risk
  • src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/Issue13551.cs: Evaluated as low risk
  • src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/Issue16094.cs: Evaluated as low risk
  • src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/Issue16918.cs: Evaluated as low risk
  • src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/Issue17366.cs: Evaluated as low risk
  • src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/Issue17400.cs: Evaluated as low risk
  • src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/Issue19556.cs: Evaluated as low risk
  • src/Controls/tests/TestCases.HostApp/Issues/Issue1426.cs: Evaluated as low risk
  • src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/Issue19500.cs: Evaluated as low risk
  • src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/Issue18282.cs: Evaluated as low risk
  • src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/Issue19379.cs: Evaluated as low risk

Comment thread src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/Issue18720DatePicker.cs Outdated
@jsuarezruiz

Copy link
Copy Markdown
Contributor

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines successfully started running 3 pipeline(s).

@jsuarezruiz jsuarezruiz left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

All these tests are failing because the snapshot is pending:
image
Could you commit the images?

@@ -1,5 +1,4 @@
#if IOS
using NUnit.Framework;
using NUnit.Framework;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pending Windows snapshot already available in the latest build.
image

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Hi @jsuarezruiz , added snapshot for Windows

@@ -17,13 +16,11 @@ public Issue19926(TestDevice device)
[Category(UITestCategories.BoxView)]
public async Task PropertiesShouldBeCorrectlyApplied()

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pending Windows snapshot.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Hi @jsuarezruiz , added snapshot for Windows

[Test]
[Category(UITestCategories.Entry)]
[Category(UITestCategories.Border)]
public void BorderRoundRectangleWithImage()

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pending Windows snapshot.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Hi @jsuarezruiz , added snapshot for Windows

@@ -1,5 +1,4 @@
#if IOS
using NUnit.Framework;
using NUnit.Framework;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pending Windows snapshot.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Hi @jsuarezruiz , added snapshot for Windows

@jsuarezruiz

jsuarezruiz commented Jan 31, 2025

Copy link
Copy Markdown
Contributor

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines successfully started running 3 pipeline(s).

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines successfully started running 3 pipeline(s).

@jsuarezruiz

jsuarezruiz commented Feb 7, 2025

Copy link
Copy Markdown
Contributor

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines successfully started running 3 pipeline(s).

@@ -1,5 +1,4 @@
#if WINDOWS
using NUnit.Framework;
using NUnit.Framework;

Copy link
Copy Markdown
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 Android. Small differences:
image
Probably because #27179

Copy link
Copy Markdown
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 updated the snapshot from the latest build

@@ -1,5 +1,4 @@
#if IOS
using NUnit.Framework;
using NUnit.Framework;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Also failing on Android:
image

Copy link
Copy Markdown
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 updated the snapshot from the latest build.

@@ -24,5 +23,4 @@ public void CarouselItemLoadsInCorrectPosition()
VerifyScreenshot();
}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

We improved the process of create the test snapshot. No longer take full screen app screenshots. This will require to update the Mac snapshots.

image

Copy link
Copy Markdown
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 updated the snapshot from the latest build

@@ -24,5 +23,4 @@ public void CarouselItemLoadsInCorrectPosition()
VerifyScreenshot();

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Small differences on snapshots, failing on Android:
image

Copy link
Copy Markdown
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 updated the snapshot from the latest build

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines successfully started running 3 pipeline(s).

@jsuarezruiz

Copy link
Copy Markdown
Contributor

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines successfully started running 3 pipeline(s).

@jfversluis jfversluis added this to the .NET 9 SR5 milestone Feb 14, 2025
@jfversluis
jfversluis dismissed jsuarezruiz’s stale review February 14, 2025 14:05

Feedback addressed

@jfversluis
jfversluis merged commit e753ce3 into dotnet:main Feb 14, 2025
@github-actions github-actions Bot locked and limited conversation to collaborators Mar 17, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

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