Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "prerelease",
"comment": "[Fabric] Text renders borders twice",
"packageName": "react-native-windows",
"email": "30809111+acoates-ms@users.noreply.github.com",
"dependentChangeType": "patch"
}
Original file line number Diff line number Diff line change
Expand Up @@ -979,7 +979,9 @@ function TextBaseLineLayoutExample(props: {}): React.Node {

function TextBorderExample(props: {}): React.Node {
return (
<View testID={'text-border'}>
<View testID={'text-border'}
accessible
accessibilityLabel="Border Example">
<Text style={styles.borderedTextSimple}>
Sample bordered text with default styling.
</Text>
Expand Down Expand Up @@ -1009,7 +1011,9 @@ function TextBorderExample(props: {}): React.Node {

function AdvancedBordersExample(props: {}): React.Node {
return (
<View testID={'advanced-borders'}>
<View testID={'advanced-borders'}
accessible
accessibilityLabel="Advanced Border Example">
<Text
style={{
borderColor: 'red',
Expand Down
12 changes: 12 additions & 0 deletions packages/e2e-test-app-fabric/test/TextComponentTest.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -99,4 +99,16 @@ describe('Text Tests', () => {
const dump = await dumpVisualTree('text-shadow');
expect(dump).toMatchSnapshot();
});
test('Text can have borders', async () => {
const component = await app.findElementByTestID('text-border');
await component.waitForDisplayed({timeout: 5000});
const dump = await dumpVisualTree('text-border');
expect(dump).toMatchSnapshot();
});
test('Text can have advanced borders', async () => {
const component = await app.findElementByTestID('advanced-borders');
await component.waitForDisplayed({timeout: 5000});
const dump = await dumpVisualTree('advanced-borders');
expect(dump).toMatchSnapshot();
});
});
Loading