Skip to content

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

Draft
wants to merge 17 commits into
base: main
Choose a base branch
from

Conversation

vineethkuttan
Copy link
Contributor

@vineethkuttan vineethkuttan commented Apr 19, 2025

Description

Type of Change

  • Bug fix (non-breaking change which fixes an issue)

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

@vineethkuttan vineethkuttan requested a review from a team as a code owner April 19, 2025 16:42
@vineethkuttan vineethkuttan marked this pull request as draft April 19, 2025 16:43
@anupriya13 anupriya13 requested a review from Copilot April 21, 2025 14:56
Copy link
Contributor

@Copilot Copilot AI left a 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

@vineethkuttan vineethkuttan force-pushed the addFontAttributesToE2E branch from cee1324 to da39d3e Compare April 29, 2025 15:25
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.

2 participants