Skip to content

Conversation

NafeelaNazhir
Copy link
Contributor

@NafeelaNazhir NafeelaNazhir commented Sep 17, 2025

Description of Change

This PR reopens the work from the closed PR #28210

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.

Screenshot 2025-09-17 at 6 29 36 PM

Issues Fixed

Fixes #27206

@NafeelaNazhir NafeelaNazhir added the area-testing Unit tests, device tests label Sep 17, 2025
@dotnet-policy-service dotnet-policy-service bot added the community ✨ Community Contribution label Sep 17, 2025
Copy link
Contributor

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

@dotnet-policy-service dotnet-policy-service bot added the partner/syncfusion Issues / PR's with Syncfusion collaboration label Sep 17, 2025
@NafeelaNazhir NafeelaNazhir marked this pull request as ready for review September 17, 2025 13:19
@Copilot Copilot AI review requested due to automatic review settings September 17, 2025 13:19
Copy link
Contributor

@Copilot 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.

Pull Request Overview

This pull request enables the Issue18193 UI test on MacCatalyst by removing the platform exclusion directive and updating button naming for better clarity and consistency. The changes aim to resolve CI reliability issues that were preventing this test from running on Catalyst platforms.

Key Changes:

  • Removed #if TEST_FAILS_ON_CATALYST directive to enable the test on MacCatalyst
  • Updated button variable names and AutomationId properties for improved clarity and consistency
  • Fixed type references in Shell content creation to use correct page types

Reviewed Changes

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

File Description
src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/Issue18193.cs Removed platform exclusion directive and updated test to use new AutomationId values
src/Controls/tests/TestCases.HostApp/Issues/Issue18193.cs Updated button variable names, AutomationId properties, and fixed Shell content type references

Comment on lines +18 to +24
tabBar.Items.Add(CreateShellContent("Page 7", typeof(Issue18193Page7), nameof(Issue18193Page7)));
tabBar.Items.Add(CreateShellContent("Page 8", typeof(Issue18193Page8), nameof(Issue18193Page8)));
tabBar.Items.Add(CreateShellContent("Page 9", typeof(Issue18193Page9), nameof(Issue18193Page9)));
tabBar.Items.Add(CreateShellContent("Page 10", typeof(Issue18193Page10), nameof(Issue18193Page10)));
tabBar.Items.Add(CreateShellContent("Page 11", typeof(Issue18193Page11), nameof(Issue18193Page11)));
tabBar.Items.Add(CreateShellContent("Page 12", typeof(Issue18193Page12), nameof(Issue18193Page12)));
tabBar.Items.Add(CreateShellContent("Page 13", typeof(Issue18193Page13), nameof(Issue18193Page13)));
Copy link
Preview

Copilot AI Sep 17, 2025

Choose a reason for hiding this comment

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

The referenced page types (Issue18193Page7 through Issue18193Page13) do not exist in the codebase. This will cause compilation errors when these types are referenced in the CreateShellContent calls.

Copilot uses AI. Check for mistakes.

@jsuarezruiz
Copy link
Contributor

/azp run MAUI-UITests-public

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@@ -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.

ShellNavigationShouldWorkInMoreTab is gaining on Mac:

   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 2530
   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 2547
   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 777
   at UITest.Appium.HelperExtensions.WaitForElementTillPageNavigationSettled(IApp app, String elementId, Nullable`1 timeout) in /_/src/TestUtils/src/UITest.Appium/HelperExtensions.cs:line 2181
   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)

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 Issue18193 was disabled on Mac Catalyst
2 participants