Skip to content

Conversation

@pavelfeldman
Copy link
Member

Fixes #35158

yury-s
yury-s previously approved these changes Apr 3, 2025
dgozman
dgozman previously approved these changes Apr 3, 2025

// Proceed based on the container mode.
if (template.containerMode === 'contain')
return containsList(node.children || [], template.children || []);
Copy link
Contributor

Choose a reason for hiding this comment

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

If we had a parent with deepEqual, should we inherit that to our grandchildren, i.e. only opt-out this particular node? As implemented, setting contain resets deep-equal for the whole subtree. Perhaps deep-contain is justified?

Copy link
Member Author

Choose a reason for hiding this comment

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

I'd say they need to opt into deep equal again for that. That way you only need to climb to the nearest directive to understand the policy.

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.

[Feature]: make toMatchAriaSnapshot "partial" behavior optional or add "toMatchFullAriaSnapshot"

3 participants