Skip to content

[ci] Enable uitests for iOS26#33622

Closed
rmarinho wants to merge 2 commits intomainfrom
enable-uitests-ios26
Closed

[ci] Enable uitests for iOS26#33622
rmarinho wants to merge 2 commits intomainfrom
enable-uitests-ios26

Conversation

@rmarinho
Copy link
Member

Description of Change

Enables lane for testing uitests on iOS26

Copilot AI review requested due to automatic review settings January 20, 2026 16:14
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.

Pull request overview

This PR enables UI testing for iOS 26 by introducing a parameterized default iOS version and updating the CI pipeline configuration.

Changes:

  • Adds a defaultiOSVersion parameter set to '26.0' to centralize iOS version management
  • Updates hardcoded iOS version references from '18.5' to use the new parameter
  • Modifies CI pipeline to test against both iOS 18.5 and the latest version

Reviewed changes

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

File Description
eng/pipelines/common/ui-tests.yml Introduces defaultiOSVersion parameter and replaces hardcoded '18.5' references with parameter usage across multiple test stages
eng/pipelines/ci-uitests.yml Updates iosVersions arrays to include both '18.5' and 'latest' for comprehensive builds, and 'latest' only for PR builds

@rmarinho
Copy link
Member Author

rmarinho commented Jan 20, 2026

/azp run maui-pr-uitests

@azure-pipelines
Copy link

Azure Pipelines failed to run 1 pipeline(s).

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@rmarinho rmarinho closed this Feb 10, 2026
PureWeen added a commit that referenced this pull request Feb 21, 2026
> [!NOTE]
> Are you waiting for the changes in this PR to be merged?
> It would be very helpful if you could [test the resulting
artifacts](https://github.com/dotnet/maui/wiki/Testing-PR-Builds) from
this PR and let us know in a comment if this change resolves your issue.
Thank you!

This pull request resolves the test failure that occurred in this PR
#33622 when enabling the UI test for
iOS 26. This PR updates the handling of virtual keyboard dismissal and
improves back arrow query logic for iOS in the Appium test utilities.
The main changes enhance reliability when interacting with the iOS
keyboard and add support for identifying the correct back button based
on the iOS version.

* Enables lane for testing uitests on iOS26

**iOS Keyboard Interaction Improvements:**
* In iOS 26, HideKeyboard does not tap the return key because the return
key string changed from “return” to an arrow button in iOS 26, so the
keyboard does not close, which causes the test to fail. The method for
dismissing the keyboard now explicitly locates and clicks the “Return”
button within the keyboard UI instead of using the generic HideKeyboard
command, which increases reliability.

**iOS Back Arrow Query Logic:**
* In iOS 26, the back arrow ID changed to BackButton, so Appium does not
find the back arrow. For iOS, the logic now checks the platform version
iOS 26 or lower. For iOS 26 and higer versions it uses the accessibility
ID "BackButton" and for lower versions it uses accessibility ID "Back".
This ensures compatibility with UI changes across iOS versions.

---------

Co-authored-by: Shane Neuville <shneuvil@microsoft.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
github-actions bot pushed a commit that referenced this pull request Feb 24, 2026
> [!NOTE]
> Are you waiting for the changes in this PR to be merged?
> It would be very helpful if you could [test the resulting
artifacts](https://github.com/dotnet/maui/wiki/Testing-PR-Builds) from
this PR and let us know in a comment if this change resolves your issue.
Thank you!

This pull request resolves the test failure that occurred in this PR
#33622 when enabling the UI test for
iOS 26. This PR updates the handling of virtual keyboard dismissal and
improves back arrow query logic for iOS in the Appium test utilities.
The main changes enhance reliability when interacting with the iOS
keyboard and add support for identifying the correct back button based
on the iOS version.

* Enables lane for testing uitests on iOS26

**iOS Keyboard Interaction Improvements:**
* In iOS 26, HideKeyboard does not tap the return key because the return
key string changed from “return” to an arrow button in iOS 26, so the
keyboard does not close, which causes the test to fail. The method for
dismissing the keyboard now explicitly locates and clicks the “Return”
button within the keyboard UI instead of using the generic HideKeyboard
command, which increases reliability.

**iOS Back Arrow Query Logic:**
* In iOS 26, the back arrow ID changed to BackButton, so Appium does not
find the back arrow. For iOS, the logic now checks the platform version
iOS 26 or lower. For iOS 26 and higer versions it uses the accessibility
ID "BackButton" and for lower versions it uses accessibility ID "Back".
This ensures compatibility with UI changes across iOS versions.

---------

Co-authored-by: Shane Neuville <shneuvil@microsoft.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
PureWeen added a commit that referenced this pull request Feb 26, 2026
> [!NOTE]
> Are you waiting for the changes in this PR to be merged?
> It would be very helpful if you could [test the resulting
artifacts](https://github.com/dotnet/maui/wiki/Testing-PR-Builds) from
this PR and let us know in a comment if this change resolves your issue.
Thank you!

This pull request resolves the test failure that occurred in this PR
#33622 when enabling the UI test for
iOS 26. This PR updates the handling of virtual keyboard dismissal and
improves back arrow query logic for iOS in the Appium test utilities.
The main changes enhance reliability when interacting with the iOS
keyboard and add support for identifying the correct back button based
on the iOS version.

* Enables lane for testing uitests on iOS26

**iOS Keyboard Interaction Improvements:**
* In iOS 26, HideKeyboard does not tap the return key because the return
key string changed from “return” to an arrow button in iOS 26, so the
keyboard does not close, which causes the test to fail. The method for
dismissing the keyboard now explicitly locates and clicks the “Return”
button within the keyboard UI instead of using the generic HideKeyboard
command, which increases reliability.

**iOS Back Arrow Query Logic:**
* In iOS 26, the back arrow ID changed to BackButton, so Appium does not
find the back arrow. For iOS, the logic now checks the platform version
iOS 26 or lower. For iOS 26 and higer versions it uses the accessibility
ID "BackButton" and for lower versions it uses accessibility ID "Back".
This ensures compatibility with UI changes across iOS versions.

---------

Co-authored-by: Shane Neuville <shneuvil@microsoft.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
PureWeen added a commit that referenced this pull request Feb 27, 2026
> [!NOTE]
> Are you waiting for the changes in this PR to be merged?
> It would be very helpful if you could [test the resulting
artifacts](https://github.com/dotnet/maui/wiki/Testing-PR-Builds) from
this PR and let us know in a comment if this change resolves your issue.
Thank you!

This pull request resolves the test failure that occurred in this PR
#33622 when enabling the UI test for
iOS 26. This PR updates the handling of virtual keyboard dismissal and
improves back arrow query logic for iOS in the Appium test utilities.
The main changes enhance reliability when interacting with the iOS
keyboard and add support for identifying the correct back button based
on the iOS version.

* Enables lane for testing uitests on iOS26

**iOS Keyboard Interaction Improvements:**
* In iOS 26, HideKeyboard does not tap the return key because the return
key string changed from “return” to an arrow button in iOS 26, so the
keyboard does not close, which causes the test to fail. The method for
dismissing the keyboard now explicitly locates and clicks the “Return”
button within the keyboard UI instead of using the generic HideKeyboard
command, which increases reliability.

**iOS Back Arrow Query Logic:**
* In iOS 26, the back arrow ID changed to BackButton, so Appium does not
find the back arrow. For iOS, the logic now checks the platform version
iOS 26 or lower. For iOS 26 and higer versions it uses the accessibility
ID "BackButton" and for lower versions it uses accessibility ID "Back".
This ensures compatibility with UI changes across iOS versions.

---------

Co-authored-by: Shane Neuville <shneuvil@microsoft.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
# Conflicts:
#	src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue7678_1.cs
jfversluis pushed a commit that referenced this pull request Mar 2, 2026
> [!NOTE]
> Are you waiting for the changes in this PR to be merged?
> It would be very helpful if you could [test the resulting
artifacts](https://github.com/dotnet/maui/wiki/Testing-PR-Builds) from
this PR and let us know in a comment if this change resolves your issue.
Thank you!

This pull request resolves the test failure that occurred in this PR
#33622 when enabling the UI test for
iOS 26. This PR updates the handling of virtual keyboard dismissal and
improves back arrow query logic for iOS in the Appium test utilities.
The main changes enhance reliability when interacting with the iOS
keyboard and add support for identifying the correct back button based
on the iOS version.

* Enables lane for testing uitests on iOS26

**iOS Keyboard Interaction Improvements:**
* In iOS 26, HideKeyboard does not tap the return key because the return
key string changed from “return” to an arrow button in iOS 26, so the
keyboard does not close, which causes the test to fail. The method for
dismissing the keyboard now explicitly locates and clicks the “Return”
button within the keyboard UI instead of using the generic HideKeyboard
command, which increases reliability.

**iOS Back Arrow Query Logic:**
* In iOS 26, the back arrow ID changed to BackButton, so Appium does not
find the back arrow. For iOS, the logic now checks the platform version
iOS 26 or lower. For iOS 26 and higer versions it uses the accessibility
ID "BackButton" and for lower versions it uses accessibility ID "Back".
This ensures compatibility with UI changes across iOS versions.

---------

Co-authored-by: Shane Neuville <shneuvil@microsoft.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants