Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Restore pre-NET8 automation behavior in the ItemsControl #8712

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

jimm98y
Copy link

@jimm98y jimm98y commented Jan 20, 2024

Fixes #8679

Description

Pull request #6862 fixed an issue with grouped ItemsControl not exposing grouped items to the automation, but as a side-effect it broke automation in ItemsControl without grouping. This pull request keeps the fix for grouped ItemsControl and restores the original behavior for non-grouped ItemsControl.

Customer Impact

Automation is broken for non-grouped ItemsControl.

Regression

Yes. This is broken since NET8, in NET7 and NET6 this was working correctly.

Testing

Sample app from #6861 on NET6 was updated with XAML from sample app in #8679 and the custom ItemsControl code was patched with the proposed fix test.zip. Both grouped and ungrouped ItemsControls are working.

Risk

Like the original change that has caused the issue in NET8 automation, even this pull request can have some unforeseen consequences in scenarios not covered by the current test cases.

Microsoft Reviewers: Open in CodeFlow

@jimm98y jimm98y requested a review from a team as a code owner January 20, 2024 16:55
@ghost ghost assigned jimm98y Jan 20, 2024
@ghost ghost added the PR metadata: Label to tag PRs, to facilitate with triage label Jan 20, 2024
@ghost ghost requested review from dipeshmsft and singhashish-wpf January 20, 2024 16:55
@ghost ghost added the Community Contribution A label for all community Contributions label Jan 20, 2024
@lindexi
Copy link
Contributor

lindexi commented Jan 22, 2024

cc @walterlv

@lindexi
Copy link
Contributor

lindexi commented Jan 22, 2024

Thank you @jimm98y . And I'm sorry, but I don't believe your current modifications will resolve issue #6861, and may instead reopen the already fixed issue #6861. I believe that including Item in automation is a necessary action.

@lindexi
Copy link
Contributor

lindexi commented Jan 22, 2024

@jimm98y Could you review the #8715 ? I think his modifications can maintain compatibility with the old behaviors while also supporting elements within the Group. Thank you.

@majomix
Copy link

majomix commented Apr 4, 2024

Hello, I'm joining this thread to mention this is a critical issue for our test automation. We're awaiting the update.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Community Contribution A label for all community Contributions PR metadata: Label to tag PRs, to facilitate with triage
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Windows Automation tree breaking change
3 participants