Skip to content

Conversation

@LogishaSelvarajSF4525
Copy link
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 15th group of tests enabled.

Test Cases:

  • Issue16561
  • Issue17453
  • Issue19214
  • Issue19214_2
  • Issue19214_3
  • Issue19956
  • Issue6458
  • ScrollViewObjectDisposed

Fixes #22902

@LogishaSelvarajSF4525 LogishaSelvarajSF4525 added area-testing Unit tests, device tests partner/syncfusion Issues / PR's with Syncfusion collaboration labels Feb 21, 2025
@dotnet-policy-service dotnet-policy-service bot added the community ✨ Community Contribution label Feb 21, 2025
@dotnet-policy-service
Copy link
Contributor

Hey there @LogishaSelvarajSF4525! Thank you so much for your PR! Someone from the team will get assigned to your PR shortly and we'll get it reviewed.

@jsuarezruiz
Copy link
Contributor

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 3 pipeline(s).

@LogishaSelvarajSF4525 LogishaSelvarajSF4525 marked this pull request as ready for review February 24, 2025 10:41
Copilot AI review requested due to automatic review settings February 24, 2025 10:41
@LogishaSelvarajSF4525 LogishaSelvarajSF4525 requested a review from a team as a code owner February 24, 2025 10:41
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Copilot reviewed 7 out of 12 changed files in this pull request and generated no comments.

Files not reviewed (5)
  • src/Controls/tests/TestCases.HostApp/Issues/ScrollViewObjectDisposed.cs: Evaluated as low risk
  • src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/ScrollViewObjectDisposed.cs: Evaluated as low risk
  • src/Controls/tests/TestCases.HostApp/Issues/Issue6458.cs: Evaluated as low risk
  • src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/Issue19214_3.cs: Evaluated as low risk
  • src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/Issue19214_2.cs: Evaluated as low risk
Comments suppressed due to low confidence (2)

src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/Issue17453.cs:71

  • Changing the method signature from 'async Task' to 'void' could cause issues if the method relies on asynchronous operations. Consider reverting it back to 'async Task'.
public void EntryWithMarginClearButtonWorks()

src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/Issue6458.cs:21

  • The method VerifyScreenshot is used, but it is not clear if this method is defined and what it does. Ensure that this method is properly defined and covered by tests.
VerifyScreenshot();

[Category(UITestCategories.Navigation)]
[Category(UITestCategories.Compatibility)]
[FailsOnAndroidWhenRunningOnXamarinUITest]
public void Issue6458Test()
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 and Windows. Pending snapshots, already available in the latest build:
Example:
image

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@jsuarezruiz I have committed this snapshot in the latest changes.

@jsuarezruiz
Copy link
Contributor

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 3 pipeline(s).

[Test]
[Category(UITestCategories.Entry)]
public async Task EntryWithMarginClearButtonWorks()
public void EntryWithMarginClearButtonWorks()
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 Android:

Assert.That(aString, new EmptyStringConstraint())
Expected: <empty>
But was:  "Simple text"

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@jsuarezruiz Modified the test to ensure it runs on Android and committed the code changes.

[Description("Tapping a button inside the ScrollView does not cause an exception.")]
[FailsOnAndroidWhenRunningOnXamarinUITest("This test is failing, likely due to product issue")]
[FailsOnWindowsWhenRunningOnXamarinUITest("This test is failing, likely due to product issue")]
public void ScrollViewObjectDisposedTest()
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 Android:

 at UITest.Appium.HelperExtensions.Click(IUIElement element) in /_/src/TestUtils/src/UITest.Appium/HelperExtensions.cs:line 287
   at UITest.Appium.HelperExtensions.Tap(IApp app, String element) in /_/src/TestUtils/src/UITest.Appium/HelperExtensions.cs:line 25
   at Microsoft.Maui.TestCases.Tests.Issues.ScrollViewObjectDisposedUITests.ScrollViewObjectDisposedTest() in /_/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/ScrollViewObjectDisposed.cs:line 22
   at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor)
   at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@jsuarezruiz Modified the test to ensure it runs on Android and committed the code changes.

@jsuarezruiz
Copy link
Contributor

/rebase

@github-actions github-actions bot force-pushed the logi-enableuitests14 branch from 638097e to 6992a2b Compare March 4, 2025 12:21
@jsuarezruiz
Copy link
Contributor

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 3 pipeline(s).

@jsuarezruiz
Copy link
Contributor

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 3 pipeline(s).

@jsuarezruiz jsuarezruiz self-assigned this Mar 6, 2025
@jsuarezruiz
Copy link
Contributor

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 3 pipeline(s).

@PureWeen PureWeen changed the base branch from main to inflight/current March 18, 2025 18:20
@PureWeen PureWeen merged commit dc2dbaa into dotnet:inflight/current Mar 18, 2025
113 of 128 checks passed
PureWeen pushed a commit that referenced this pull request Mar 26, 2025
…ion - 15 (#27965)

* enable the test case for all platforms

* enable ScrollViewObjectDisposed.cs

* updated the changes

* modified

* added the snapshot

* added snapshot

* modified changes

* Update Issue17453.cs

* modified Issue17453.cs
PureWeen pushed a commit that referenced this pull request Mar 26, 2025
…ion - 15 (#27965)

* enable the test case for all platforms

* enable ScrollViewObjectDisposed.cs

* updated the changes

* modified

* added the snapshot

* added snapshot

* modified changes

* Update Issue17453.cs

* modified Issue17453.cs
github-actions bot pushed a commit that referenced this pull request Mar 27, 2025
…ion - 15 (#27965)

* enable the test case for all platforms

* enable ScrollViewObjectDisposed.cs

* updated the changes

* modified

* added the snapshot

* added snapshot

* modified changes

* Update Issue17453.cs

* modified Issue17453.cs
@github-actions github-actions bot locked and limited conversation to collaborators Apr 18, 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

3 participants