diff --git a/packages/roosterjs-content-model-dom/test/endToEndTest.ts b/packages/roosterjs-content-model-dom/test/endToEndTest.ts index cbf42699582..3d07f2a9972 100644 --- a/packages/roosterjs-content-model-dom/test/endToEndTest.ts +++ b/packages/roosterjs-content-model-dom/test/endToEndTest.ts @@ -2278,7 +2278,7 @@ describe('End to end test for DOM => Model => DOM/TEXT', () => { ); }); - it('TH with font-weight', () => { + it('TH with font-weight: 400', () => { runTest( '
test
', { @@ -2328,4 +2328,55 @@ describe('End to end test for DOM => Model => DOM/TEXT', () => { '
test
' ); }); + + it('TH with font-weight: bold', () => { + runTest( + '
test
', + { + blockGroupType: 'Document', + blocks: [ + { + widths: [], + rows: [ + { + height: 0, + cells: [ + { + spanAbove: false, + spanLeft: false, + isHeader: true, + blockGroupType: 'TableCell', + blocks: [ + { + isImplicit: true, + segments: [ + { + text: 'test', + segmentType: 'Text', + format: { + fontWeight: 'bold', + }, + }, + ], + blockType: 'Paragraph', + format: {}, + }, + ], + format: {}, + dataset: {}, + }, + ], + format: {}, + }, + ], + blockType: 'Table', + format: {}, + dataset: {}, + }, + ], + }, + 'test', + '
test
' + ); + }); });