Skip to content

refactor: rc-component/table #1480

refactor: rc-component/table

refactor: rc-component/table #1480

Triggered via pull request January 10, 2025 19:47
@li-jia-nanli-jia-nan
synchronize #1219
v6-update
Status Failure
Total duration 1m 8s
Artifacts

main.yml

on: pull_request
test  /  react component workflow
59s
test / react component workflow
Fit to window
Zoom out
Zoom in

Annotations

10 errors and 1 warning
tests/FixedColumn.spec.tsx > Table.FixedColumn > renders correctly > scrollXY - with data: tests/FixedColumn.spec.tsx#L99
Error: Snapshot `Table.FixedColumn > renders correctly > scrollXY - with data 1` mismatched - Expected + Received @@ -47,13 +47,10 @@ style="width: 1000px;" /> <col style="width: 1000px;" /> - <col - style="width: 15px;" - /> </colgroup> <thead class="rc-table-thead" > <tr> @@ -131,18 +128,14 @@ title11 </th> <th class="rc-table-cell rc-table-cell-fix-right rc-table-cell-fix-right-first" scope="col" - style="position: sticky; right: 15px;" + style="position: sticky; right: 0px;" > title12 </th> - <th - class="rc-table-cell rc-table-cell-fix-right rc-table-cell-scrollbar" - style="position: sticky; right: 0px;" - /> </tr> </thead> </table> </div> <div ❯ tests/FixedColumn.spec.tsx:99:36
tests/FixedColumn.spec.tsx > Table.FixedColumn > renders correctly > scrollXY - without data: tests/FixedColumn.spec.tsx#L99
Error: Snapshot `Table.FixedColumn > renders correctly > scrollXY - without data 1` mismatched - Expected + Received @@ -47,13 +47,10 @@ style="width: 1000px;" /> <col style="width: 1000px;" /> - <col - style="width: 15px;" - /> </colgroup> <thead class="rc-table-thead" > <tr> @@ -131,18 +128,14 @@ title11 </th> <th class="rc-table-cell rc-table-cell-fix-right rc-table-cell-fix-right-first" scope="col" - style="position: sticky; right: 15px;" + style="position: sticky; right: 0px;" > title12 </th> - <th - class="rc-table-cell rc-table-cell-fix-right rc-table-cell-scrollbar" - style="position: sticky; right: 0px;" - /> </tr> </thead> </table> </div> <div ❯ tests/FixedColumn.spec.tsx:99:36
tests/FixedColumn.spec.tsx > Table.FixedColumn > shadow should display correctly: tests/FixedColumn.spec.tsx#L306
Error: Snapshot `Table.FixedColumn > shadow should display correctly 1` mismatched - Expected + Received @@ -46,19 +46,14 @@ </th> <th class="rc-table-cell rc-table-cell-fix-right rc-table-cell-fix-right-first" rowspan="4" scope="col" - style="position: sticky; right: 15px;" + style="position: sticky; right: 0px;" > Gender </th> - <th - class="rc-table-cell rc-table-cell-fix-right rc-table-cell-scrollbar" - rowspan="4" - style="position: sticky; right: 0px;" - /> </tr> <tr> <th class="rc-table-cell rc-table-cell-fix-left rc-table-cell-ellipsis" rowspan="3" ❯ tests/FixedColumn.spec.tsx:306:23
tests/FixedColumn.spec.tsx > Table.FixedColumn > shadow should be shown when there are columns where fixed is false: tests/FixedColumn.spec.tsx#L342
Error: Snapshot `Table.FixedColumn > shadow should be shown when there are columns where fixed is false 1` mismatched - Expected + Received @@ -37,18 +37,14 @@ Company </th> <th class="rc-table-cell rc-table-cell-fix-right rc-table-cell-fix-right-first" scope="col" - style="position: sticky; right: 15px;" + style="position: sticky; right: 0px;" > Gender </th> - <th - class="rc-table-cell rc-table-cell-fix-right rc-table-cell-scrollbar" - style="position: sticky; right: 0px;" - /> </tr> </thead> </table> </div> <div ❯ tests/FixedColumn.spec.tsx:342:23
tests/FixedHeader.spec.jsx > Table.FixedHeader > should work: tests/FixedHeader.spec.jsx#L65
AssertionError: expected 100 to deeply equal +0 - Expected + Received - 0 + 100 ❯ tests/FixedHeader.spec.jsx:65:68
tests/Sticky.spec.jsx > Table.Sticky > Sticky scroll: tests/Sticky.spec.jsx#L142
AssertionError: expected { …(9) } to be falsy - Expected: false + Received: <div className="rc-table-sticky-scroll" style={ Object { "bottom": 0, "height": undefined, "width": 100, } } > <div className="rc-table-sticky-scroll-bar" onMouseDown={[Function onMouseDown]} style={ Object { "transform": "translate3d(50px, 0, 0)", "width": "50px", } } /> </div> ❯ tests/Sticky.spec.jsx:142:60
tests/Sticky.spec.jsx > Table.Sticky > Sticky Header with scroll-y: tests/Sticky.spec.jsx#L290
AssertionError: expected { position: 'sticky', right: NaN } to deeply equal { position: 'sticky', right: 15 } - Expected + Received Object { "position": "sticky", - "right": 15, + "right": NaN, } ❯ tests/Sticky.spec.jsx:290:7
tests/Table.spec.jsx > Table.Basic > custom components > renders fixed column and header correctly: tests/Table.spec.jsx#L642
Error: Snapshot `Table.Basic > custom components > renders fixed column and header correctly 1` mismatched - Expected + Received @@ -37,19 +37,14 @@ </th> <th class="rc-table-cell rc-table-cell-fix-right rc-table-cell-fix-right-first" name="my-header-cell" scope="col" - style="position: sticky; right: 15px;" + style="position: sticky; right: 0px;" > Gender </th> - <th - class="rc-table-cell rc-table-cell-fix-right rc-table-cell-scrollbar" - name="my-header-cell" - style="position: sticky; right: 0px;" - /> </tr> </thead> </table> </div> <div ❯ tests/Table.spec.jsx:642:32
tests/Table.spec.jsx > Table.Basic > custom components > scroll content > with scroll: tests/Table.spec.jsx#L658
Error: Snapshot `Table.Basic > custom components > scroll content > with scroll 1` mismatched - Expected + Received @@ -10,33 +10,20 @@ style="overflow: hidden;" > <table style="table-layout: fixed;" > - <colgroup> - <col - style="width: 0px;" - /> - <col - style="width: 888px;" - /> - <col - style="width: 15px;" - /> - </colgroup> - <thead - class="rc-table-thead" - > - <tr> - <th - class="rc-table-cell" - /> + <colgroup /> + <thead + class="rc-table-thead" + > + <tr> <th class="rc-table-cell" /> <th - class="rc-table-cell rc-table-cell-scrollbar" + class="rc-table-cell" /> </tr> </thead> </table> </div> ❯ tests/Table.spec.jsx:658:34
tests/Table.spec.jsx > Table.Basic > should get scrollbar size: tests/Table.spec.jsx#L1194
Error: Snapshot `Table.Basic > should get scrollbar size 1` mismatched - Expected + Received @@ -10,31 +10,21 @@ style="overflow: hidden;" > <table style="table-layout: fixed;" > - <colgroup> - <col - style="width: 85px;" - /> + <colgroup /> - <col - style="width: 15px;" - /> - </colgroup> <thead class="rc-table-thead" > <tr> <th class="rc-table-cell" scope="col" > Name </th> - <th - class="rc-table-cell rc-table-cell-scrollbar" - /> </tr> </thead> </table> </div> </div> ❯ tests/Table.spec.jsx:1194:30
test / react component workflow
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636