-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Add font attributes to testing E2E #14584
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
base: main
Are you sure you want to change the base?
Add font attributes to testing E2E #14584
Conversation
There was a problem hiding this 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 pull request addresses a bug fix by introducing additional font attributes for enhanced E2E test coverage. The changes include updating attribute handling in CompositionTextRangeProvider and adding new test utility functions and attribute retrieval logic in RNTesterApp-Fabric.
- Updated CompositionTextRangeProvider to use VT_INT and assign font cap style values.
- Added overloaded InsertNumberValueIfNotDefault functions and extended DumpUIAPatternInfo to retrieve and record various font-related attributes.
Reviewed Changes
Copilot reviewed 2 out of 3 changed files in this pull request and generated 2 comments.
File | Description |
---|---|
vnext/Microsoft.ReactNative/Fabric/Composition/CompositionTextRangeProvider.cpp | Changed cap style attribute handling from returning values to assigning them to pRetVal, and updated type from VT_I4 to VT_INT. |
packages/e2e-test-app-fabric/windows/RNTesterApp-Fabric/RNTesterApp-Fabric.cpp | Introduced two overloaded InsertNumberValueIfNotDefault functions and extended DumpUIAPatternInfo to include fetching of additional font attributes. |
Files not reviewed (1)
- change/react-native-windows-abe3b81a-02be-4c81-86e1-40bbf5d69332.json: Language not supported
vnext/Microsoft.ReactNative/Fabric/Composition/CompositionTextRangeProvider.cpp
Outdated
Show resolved
Hide resolved
packages/e2e-test-app-fabric/windows/RNTesterApp-Fabric/RNTesterApp-Fabric.cpp
Show resolved
Hide resolved
packages/e2e-test-app-fabric/windows/RNTesterApp-Fabric/RNTesterApp-Fabric.cpp
Show resolved
Hide resolved
vnext/Microsoft.ReactNative/Fabric/Composition/CompositionTextRangeProvider.cpp
Outdated
Show resolved
Hide resolved
cee1324
to
da39d3e
Compare
Description
Type of Change
Why
What is the motivation for this change? Add a few sentences describing the context and overall goals of the pull request's commits.
Resolves [Add Relevant Issue Here]
What
What changes were made to the codebase to solve the bug, add the functionality, etc. that you specified above.
Add E2E test cases for PR #14332
Microsoft Reviewers: Open in CodeFlow