Skip to content

[Testing] Enable UITest Issue18193 on MacCatalyst#28210

Closed
ghost wants to merge 2 commits intomainfrom
unknown repository
Closed

[Testing] Enable UITest Issue18193 on MacCatalyst#28210
ghost wants to merge 2 commits intomainfrom
unknown repository

Conversation

@ghost
Copy link

@ghost ghost commented Mar 6, 2025

Description of Change

This pull request introduces multiple updates to the Issue18193 test cases. The main changes focus on renaming button variables and their AutomationId properties to enhance clarity and consistency, along with minor refactoring aimed at resolving reliability issues on Catalyst platforms within CI environments. Although the specific cause of the ongoing CI failures has not been conclusively identified, these modifications tackle frequent issues that can impact UI test reliability on Catalyst platforms.

Test updates:

  • Removed the #if TEST_FAILS_ON_CATALYST directive and the related comment from the Issue18193 test file.
  • Updated the test steps in the ShellNavigationShouldWorkInMoreTab method to use the new AutomationId values for button interactions.
image

Issues Fixed

Fixes #27206

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

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 3 pipeline(s).

@ghost ghost marked this pull request as ready for review March 6, 2025 12:41
Copilot AI review requested due to automatic review settings March 6, 2025 12:41
@ghost ghost self-requested a review as a code owner March 6, 2025 12:41
@ghost ghost requested review from PureWeen and StephaneDelcroix March 6, 2025 12: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.

PR Overview

A PR update to enhance the clarity and reliability of UITest Issue18193 on MacCatalyst by renaming button variables and their AutomationId properties as well as refactoring associated test steps.

  • Updated Shell tab bar item definitions to properly map pages and types.
  • Renamed button variables and updated AutomationId values for consistency.
  • Removed the TEST_FAILS_ON_CATALYST directive and updated UITest step references accordingly.

Reviewed Changes

File Description
src/Controls/tests/TestCases.HostApp/Issues/Issue18193.cs Updated Shell content creation and button AutomationId names to improve clarity and consistency.
src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/Issue18193.cs Adjusted test steps to reference the new AutomationId values and removed obsolete preprocessor directives.

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

@rmarinho
Copy link
Member

rmarinho commented Mar 6, 2025

@@ -17,19 +16,18 @@ public Issue18193(TestDevice testDevice) : base(testDevice)
[Category(UITestCategories.Shell)]
public void ShellNavigationShouldWorkInMoreTab()
Copy link
Contributor

Choose a reason for hiding this comment

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

Test is failing on Catalyst:

   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 2352
   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 2369
   at UITest.Appium.HelperExtensions.WaitForElement(IApp app, IQuery query, String timeoutMessage, Nullable`1 timeout, Nullable`1 retryFrequency, Nullable`1 postTimeout) in /_/src/TestUtils/src/UITest.Appium/HelperExtensions.cs:line 699
   at UITest.Appium.HelperExtensions.WaitForElementTillPageNavigationSettled(IApp app, String elementId, Nullable`1 timeout) in /_/src/TestUtils/src/UITest.Appium/HelperExtensions.cs:line 2079
   at Microsoft.Maui.TestCases.Tests.Issues.Issue18193.ShellNavigationShouldWorkInMoreTab() in /_/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/Issue18193.cs:line 23
   at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor)
   at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr)

@ghost ghost marked this pull request as draft March 17, 2025 10:17
@jsuarezruiz
Copy link
Contributor

/azp run MAUI-UITests-public

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@ghost ghost marked this pull request as ready for review August 6, 2025 09:56
@ghost ghost requested a review from jsuarezruiz August 6, 2025 10:04
@jfversluis
Copy link
Member

/azp run MAUI-UITests-public

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

Copy link
Member

@jfversluis jfversluis left a comment

Choose a reason for hiding this comment

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

Still a timeout on the one test

at UITest.Appium.HelperExtensions.Wait(Func1 query, Func2 satisfactory, String timeoutMessage, Nullable1 timeout, Nullable1 retryFrequency) in //src/TestUtils/src/UITest.Appium/HelperExtensions.cs:line 2460
at UITest.Appium.HelperExtensions.WaitForAtLeastOne(Func1 query, String timeoutMessage, Nullable1 timeout, Nullable1 retryFrequency) in /_/src/TestUtils/src/UITest.Appium/HelperExtensions.cs:line 2477 at UITest.Appium.HelperExtensions.WaitForElement(IApp app, IQuery query, String timeoutMessage, Nullable1 timeout, Nullable1 retryFrequency, Nullable1 postTimeout) in /
/src/TestUtils/src/UITest.Appium/HelperExtensions.cs:line 715
at UITest.Appium.HelperExtensions.WaitForElementTillPageNavigationSettled(IApp app, String elementId, Nullable`1 timeout) in //src/TestUtils/src/UITest.Appium/HelperExtensions.cs:line 2119
at Microsoft.Maui.TestCases.Tests.Issues.Issue18193.ShellNavigationShouldWorkInMoreTab() in /
/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/Issue18193.cs:line 23
at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor)
at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr)

@ghost ghost closed this by deleting the head repository Sep 17, 2025
@github-actions github-actions bot locked and limited conversation to collaborators Oct 17, 2025
This pull request was closed.
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 Issue18193 was disabled on Mac Catalyst

4 participants