Add accessibility identifier to MauiDoneAccessoryView Done button for UI testing#32828
Merged
jfversluis merged 4 commits intoinflight/currentfrom Nov 26, 2025
Merged
Conversation
Co-authored-by: jfversluis <939291+jfversluis@users.noreply.github.com>
Co-authored-by: jfversluis <939291+jfversluis@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add Id to Done button for accessibility
Add accessibility identifier to MauiDoneAccessoryView Done button for UI testing
Nov 24, 2025
Member
|
/azp run MAUI-UITests-public |
|
Azure Pipelines successfully started running 1 pipeline(s). |
|
Azure Pipelines successfully started running 1 pipeline(s). |
Contributor
There was a problem hiding this comment.
Pull request overview
This PR adds an accessibility identifier to the Done button in iOS numeric keyboard's input accessory view to enable UI testing automation. The change addresses GitHub issue #32825 by adding the identifier "Microsoft.Maui.Platform.MauiDoneAccessory.DoneButton" to the UIBarButtonItem in both MauiDoneAccessoryView constructors and includes a comprehensive UI test to verify the functionality.
Key Changes
- Added accessibility identifier constant and assignment to UIBarButtonItems in MauiDoneAccessoryView
- Created UI test infrastructure to verify the Done button is accessible and functional
- Implemented test page with Entry control using numeric keyboard to demonstrate the feature
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| src/Core/src/Platform/iOS/MauiDoneAccessoryView.cs | Added constant for automation ID and assigned it to Done button in both constructors |
| src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/MauiDoneAccessoryButton.cs | NUnit UI test that verifies Done button accessibility and tap behavior |
| src/Controls/tests/TestCases.HostApp/Issues/MauiDoneAccessoryButton.cs | Test page with numeric Entry demonstrating Done button functionality |
src/Controls/tests/TestCases.HostApp/Issues/MauiDoneAccessoryButton.cs
Outdated
Show resolved
Hide resolved
…utton.cs Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
|
Azure Pipelines successfully started running 1 pipeline(s). |
1 similar comment
|
Azure Pipelines successfully started running 1 pipeline(s). |
PureWeen
pushed a commit
that referenced
this pull request
Dec 3, 2025
…2828) Add accessibility identifier to MauiDoneAccessoryView Done button Co-authored-by: jfversluis <939291+jfversluis@users.noreply.github.com> Address code review feedback - extract constant and improve comment Co-authored-by: jfversluis <939291+jfversluis@users.noreply.github.com> Update src/Controls/tests/TestCases.HostApp/Issues/MauiDoneAccessoryButton.cs Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
github-actions bot
pushed a commit
that referenced
this pull request
Dec 5, 2025
…2828) Add accessibility identifier to MauiDoneAccessoryView Done button Co-authored-by: jfversluis <939291+jfversluis@users.noreply.github.com> Address code review feedback - extract constant and improve comment Co-authored-by: jfversluis <939291+jfversluis@users.noreply.github.com> Update src/Controls/tests/TestCases.HostApp/Issues/MauiDoneAccessoryButton.cs Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 from this PR and let us know in a comment if this change resolves your issue. Thank you!
Description of Change
The Done button in numeric keyboard's input accessory view was not accessible for UI testing due to missing accessibility identifier.
Changes:
AccessibilityIdentifier = "Microsoft.Maui.Platform.MauiDoneAccessory.DoneButton"on UIBarButtonItem in both MauiDoneAccessoryView constructorsUsage in tests:
Issues Fixed
Fixes #32825
Original prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.