Skip to content

Implementing uia provider support for DTP control#6620

Merged
Tanya-Solyanik merged 1 commit intodotnet:mainfrom
lisoenot:DTP-should-support-UIA-provider
Feb 21, 2022
Merged

Implementing uia provider support for DTP control#6620
Tanya-Solyanik merged 1 commit intodotnet:mainfrom
lisoenot:DTP-should-support-UIA-provider

Conversation

@lisoenot
Copy link
Contributor

@lisoenot lisoenot commented Feb 4, 2022

Implements part of #3421

Proposed changes

  • Switched on SupportsUiaProviders property of DateTimePicker class.
  • Added needed automation events to fix behavior in Narrator.
  • Reworked DateTimePickerAccessibleObject, added unit tests.
  • Added workaround to check AccessKey for dtp in ControlAccessibleObjectTests.

Customer Impact

  • Improving development experience for DateTimePicker control accessibility.

Regression?

  • No

Risk

  • Minimal

Screenshots

Changes in accessibility tools.

Accessibility Insights

Before

AI

After

a

Narrator & Buddy

The behavior in Narrator was restored after the fix. Seems was resolved problem described in issue #5487.

NB New

Calendar issue

The Narrator doesn't work with dtp calendar. Seems, it is native control problem, because the Narrator doesn't work with dtp in MFC app at all. You can see it on following gif below.
I attach the test MFC app with dtp: MFCApplication.zip

DateTimePickerMFC

Test methodology

  • Manually
  • Unit testing
  • CTI

Accessibility testing

  • Inspect
  • Accessibility Insights
  • Narrator

Test environment(s)

  • .Net version: 7.0.100-preview.1.22078.7
  • OS version: 10.0.19044
Microsoft Reviewers: Open in CodeFlow

@lisoenot lisoenot requested a review from a team as a code owner February 4, 2022 10:50
@ghost ghost assigned lisoenot Feb 4, 2022
@lisoenot lisoenot added the waiting-review This item is waiting on review by one or more members of team label Feb 4, 2022
RussKie
RussKie previously approved these changes Feb 4, 2022
Copy link
Contributor

@RussKie RussKie left a comment

Choose a reason for hiding this comment

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

👍

@lisoenot lisoenot force-pushed the DTP-should-support-UIA-provider branch 2 times, most recently from 7181a58 to e01af3e Compare February 8, 2022 08:14
Tanya-Solyanik
Tanya-Solyanik previously approved these changes Feb 8, 2022
Copy link
Contributor

@Tanya-Solyanik Tanya-Solyanik left a comment

Choose a reason for hiding this comment

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

Looks good!

@Tanya-Solyanik
Copy link
Contributor

@Olina-Zhang - could you please test this change?

@dreddy-work dreddy-work added the waiting-for-testing The PR is awaiting manual testing by the primary team; no action is yet required from the author(s) label Feb 8, 2022
@Tanya-Solyanik Tanya-Solyanik removed the waiting-review This item is waiting on review by one or more members of team label Feb 9, 2022
@lisoenot lisoenot force-pushed the DTP-should-support-UIA-provider branch from e01af3e to ad15840 Compare February 16, 2022 16:14
@lisoenot
Copy link
Contributor Author

Fixed 2 found issues here. Sent it to retest.

@lisoenot lisoenot force-pushed the DTP-should-support-UIA-provider branch from ad15840 to a98c648 Compare February 16, 2022 16:53
Tanya-Solyanik
Tanya-Solyanik previously approved these changes Feb 17, 2022
@Amy-Li03
Copy link
Contributor

Completed testing with no new issue found now.

@Amy-Li03 Amy-Li03 removed the waiting-for-testing The PR is awaiting manual testing by the primary team; no action is yet required from the author(s) label Feb 17, 2022
@Tanya-Solyanik Tanya-Solyanik added the ready-to-merge PRs that are ready to merge but worth notifying the internal team. label Feb 17, 2022
@lisoenot lisoenot force-pushed the DTP-should-support-UIA-provider branch from a98c648 to c2975ec Compare February 17, 2022 08:16
Copy link
Contributor

@vladimir-krestov vladimir-krestov left a comment

Choose a reason for hiding this comment

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

Looks good ✔️

@lisoenot lisoenot force-pushed the DTP-should-support-UIA-provider branch from c2975ec to 11a1e37 Compare February 18, 2022 10:43
dreddy-work
dreddy-work previously approved these changes Feb 18, 2022
@dreddy-work
Copy link
Member

When you are working fixing found issues like this, it would be nice if you push the changes as separate commit here, instead of force pushing, to make the review easy. We can always squash commits when merging.

@dreddy-work
Copy link
Member

@DmitryGorokhov , this needs rebase.

Fixed SupportsUiaPrividers method to return true and fixed Narrator announcing.
@Tanya-Solyanik Tanya-Solyanik merged commit 32d9351 into dotnet:main Feb 21, 2022
@RussKie RussKie added this to the 7.0 Preview3 milestone Feb 22, 2022
@lisoenot lisoenot deleted the DTP-should-support-UIA-provider branch February 24, 2022 05:39
@Philip-Wang01
Copy link
Contributor

Verified with .NET SDK 7.0.100-preview.3.22153.11 build, this issue is fixed.
image
image
image

@ghost
Copy link

ghost commented Mar 4, 2022

Hi @Philip-Wang01, it looks like you just commented on a closed PR. The team will most probably miss it.
If you have a question - consider opening a new discussion thread. Alternatively, you'd like to bring something important up to their attention, consider filing a new issue and add enough details to build context.

@ghost ghost locked as resolved and limited conversation to collaborators Apr 3, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

ready-to-merge PRs that are ready to merge but worth notifying the internal team.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants