Skip to content

Commit

Permalink
test: 单测修复
Browse files Browse the repository at this point in the history
  • Loading branch information
wjgogogo committed Nov 19, 2024
1 parent e31c73e commit 008220f
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 173 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ exports[`Pagination Tests should render with antd <Pagination/> component 1`] =
/>
</div>
<ul
class="ant-pagination ant-pagination-mini css-dev-only-do-not-override-qnu6hi"
class="ant-pagination ant-pagination-mini css-dev-only-do-not-override-49qm"
>
<li
class="ant-pagination-total-text"
Expand Down Expand Up @@ -119,7 +119,7 @@ exports[`Pagination Tests should render with antd <Pagination/> component 2`] =
/>
</div>
<ul
class="ant-pagination ant-pagination-mini css-dev-only-do-not-override-qnu6hi"
class="ant-pagination ant-pagination-mini css-dev-only-do-not-override-49qm"
>
<li
class="ant-pagination-total-text"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,21 +15,6 @@ exports[`<StrategySheet/> Tests StrategySheet Export Tests should export correct
指标E 自定义节点D "
`;

exports[`<StrategySheet/> Tests StrategySheet Export Tests should export correct data 2`] = `
" 日期 2022-09 2022-10 2022-11 2021年净增完成度 趋势 2022
指标 数值 环比 同比 数值 环比 数值 环比 同比 净增完成度 趋势 数值 环比
自定义节点A -
自定义节点A 指标A 377 3877 4324 42% - - 377
自定义节点A 指标A 指标B 377 324 377 324 -0.02 - - 377 324
自定义节点A 指标A 自定义节点B
自定义节点A 指标A 指标C 324 377 0 - - 324
自定义节点A 指标A 指标D 377 324 377 324 0.02 - - 377 324
自定义节点A 自定义节点E
指标E 377 324 0.02 - -
指标E 自定义节点C
指标E 自定义节点D "
`;

exports[`<StrategySheet/> Tests StrategySheet Export Tests should export correct data by {formatHeader: false, formatData: false} 1`] = `
" 日期 2022-09 2022-10 2022-11 2021年净增完成度 趋势 2022
指标 数值 环比 同比 数值 环比 数值 环比 同比 净增完成度 趋势 数值 环比
Expand All @@ -45,21 +30,6 @@ measure-e custom-node-3
measure-e custom-node-4 "
`;

exports[`<StrategySheet/> Tests StrategySheet Export Tests should export correct data by {formatHeader: false, formatData: false} 2`] = `
" 日期 2022-09 2022-10 2022-11 2021年净增完成度 趋势 2022
指标 数值 环比 同比 数值 环比 数值 环比 同比 净增完成度 趋势 数值 环比
custom-node-1 -
custom-node-1 measure-a 377 3877 4324 0.42 - - 377
custom-node-1 measure-a measure-b 377 324 377 324 -0.02 - - 377 324
custom-node-1 measure-a custom-node-2
custom-node-1 measure-a measure-c 324 377 0 - - 324
custom-node-1 measure-a measure-d 377 324 377 324 0.02 - - 377 324
custom-node-1 custom-node-5
measure-e 377 324 0.02 - -
measure-e custom-node-3
measure-e custom-node-4 "
`;

exports[`<StrategySheet/> Tests StrategySheet Export Tests should export correct data by {formatHeader: false, formatData: true} 1`] = `
" 日期 2022-09 2022-10 2022-11 2021年净增完成度 趋势 2022
指标 数值 环比 同比 数值 环比 数值 环比 同比 净增完成度 趋势 数值 环比
Expand All @@ -75,21 +45,6 @@ measure-e custom-node-3
measure-e custom-node-4 "
`;

exports[`<StrategySheet/> Tests StrategySheet Export Tests should export correct data by {formatHeader: false, formatData: true} 2`] = `
" 日期 2022-09 2022-10 2022-11 2021年净增完成度 趋势 2022
指标 数值 环比 同比 数值 环比 数值 环比 同比 净增完成度 趋势 数值 环比
custom-node-1 -
custom-node-1 measure-a 377 3877 4324 0.42 - - 377
custom-node-1 measure-a measure-b 377 324 377 324 -0.02 - - 377 324
custom-node-1 measure-a custom-node-2
custom-node-1 measure-a measure-c 324 377 0 - - 324
custom-node-1 measure-a measure-d 377 324 377 324 0.02 - - 377 324
custom-node-1 custom-node-5
measure-e 377 324 0.02 - -
measure-e custom-node-3
measure-e custom-node-4 "
`;

exports[`<StrategySheet/> Tests StrategySheet Export Tests should export correct data by custom separator 1`] = `
",,日期,2022-09,,,2022-10,,2022-11,,,2021年净增完成度,趋势,2022,
,,指标,数值,环比,同比,数值,环比,数值,环比,同比,净增完成度,趋势,数值,环比
Expand All @@ -105,21 +60,6 @@ exports[`<StrategySheet/> Tests StrategySheet Export Tests should export correct
指标E,自定义节点D,,,,,,,,,,,,,"
`;

exports[`<StrategySheet/> Tests StrategySheet Export Tests should export correct data by custom separator 2`] = `
",,日期,2022-09,,,2022-10,,2022-11,,,2021年净增完成度,趋势,2022,
,,指标,数值,环比,同比,数值,环比,数值,环比,同比,净增完成度,趋势,数值,环比
自定义节点A,,,,,,,,,,,,-,,
自定义节点A,指标A,,,,,377,,3877,4324,42%,-,-,377,
自定义节点A,指标A,指标B,,,,377,324,377,324,-0.02,-,-,377,324
自定义节点A,指标A,自定义节点B,,,,,,,,,,,,
自定义节点A,指标A,指标C,,,,,324,377,0,,-,-,,324
自定义节点A,指标A,指标D,,,,377,324,377,324,0.02,-,-,377,324
自定义节点A,自定义节点E,,,,,,,,,,,,,
指标E,,,,,,,,377,324,0.02,-,-,,
指标E,自定义节点C,,,,,,,,,,,,,
指标E,自定义节点D,,,,,,,,,,,,,"
`;

exports[`<StrategySheet/> Tests StrategySheet Export Tests should export correct data for custom corner text 1`] = `
" 日期 2022-09 2022-10 2022-11 2021年净增完成度 趋势 2022
指标 数值 环比 同比 数值 环比 数值 环比 同比 净增完成度 趋势 数值 环比
Expand All @@ -135,21 +75,6 @@ exports[`<StrategySheet/> Tests StrategySheet Export Tests should export correct
指标E 自定义节点D "
`;

exports[`<StrategySheet/> Tests StrategySheet Export Tests should export correct data for custom corner text 2`] = `
" 日期 2022-09 2022-10 2022-11 2021年净增完成度 趋势 2022
指标 数值 环比 同比 数值 环比 数值 环比 同比 净增完成度 趋势 数值 环比
自定义节点A -
自定义节点A 指标A 377 3877 4324 42% - - 377
自定义节点A 指标A 指标B 377 324 377 324 -0.02 - - 377 324
自定义节点A 指标A 自定义节点B
自定义节点A 指标A 指标C 324 377 0 - - 324
自定义节点A 指标A 指标D 377 324 377 324 0.02 - - 377 324
自定义节点A 自定义节点E
指标E 377 324 0.02 - -
指标E 自定义节点C
指标E 自定义节点D "
`;

exports[`<StrategySheet/> Tests StrategySheet Export Tests should export correct data for default corner text 1`] = `
" 日期 2022-09 2022-10 2022-11 2021年净增完成度 趋势 2022
指标 数值 环比 同比 数值 环比 数值 环比 同比 净增完成度 趋势 数值 环比
Expand All @@ -165,21 +90,6 @@ exports[`<StrategySheet/> Tests StrategySheet Export Tests should export correct
指标E 自定义节点D "
`;

exports[`<StrategySheet/> Tests StrategySheet Export Tests should export correct data for default corner text 2`] = `
" 日期 2022-09 2022-10 2022-11 2021年净增完成度 趋势 2022
指标 数值 环比 同比 数值 环比 数值 环比 同比 净增完成度 趋势 数值 环比
自定义节点A -
自定义节点A 指标A 377 3877 4324 42% - - 377
自定义节点A 指标A 指标B 377 324 377 324 -0.02 - - 377 324
自定义节点A 指标A 自定义节点B
自定义节点A 指标A 指标C 324 377 0 - - 324
自定义节点A 指标A 指标D 377 324 377 324 0.02 - - 377 324
自定义节点A 自定义节点E
指标E 377 324 0.02 - -
指标E 自定义节点C
指标E 自定义节点D "
`;

exports[`<StrategySheet/> Tests StrategySheet Export Tests should export correct data for empty cell 1`] = `
" 日期 2022-09 2022-10 2022-11 2021年净增完成度 趋势 2022
指标 数值 环比 同比 数值 环比 数值 环比 同比 净增完成度 趋势 数值 环比
Expand All @@ -195,21 +105,6 @@ exports[`<StrategySheet/> Tests StrategySheet Export Tests should export correct
指标E 自定义节点D "
`;

exports[`<StrategySheet/> Tests StrategySheet Export Tests should export correct data for empty cell 2`] = `
" 日期 2022-09 2022-10 2022-11 2021年净增完成度 趋势 2022
指标 数值 环比 同比 数值 环比 数值 环比 同比 净增完成度 趋势 数值 环比
自定义节点A -
自定义节点A 指标A 377 3877 4324 42% - - 377
自定义节点A 指标A 指标B 377 324 377 324 -0.02 - - 377 324
自定义节点A 指标A 自定义节点B
自定义节点A 指标A 指标C 324 377 0 - - 324
自定义节点A 指标A 指标D 377 324 377 324 0.02 - - 377 324
自定义节点A 自定义节点E
指标E 377 324 0.02 - -
指标E 自定义节点C
指标E 自定义节点D "
`;

exports[`<StrategySheet/> Tests StrategySheet Export Tests should export correct data for multi different cycle compare data 1`] = `
" 日期 2022-09 2022-10 2022-11 2021年净增完成度 趋势 2022
指标 数值 环比 同比 数值 环比 数值 环比 同比 净增完成度 趋势 数值 环比
Expand All @@ -225,21 +120,6 @@ exports[`<StrategySheet/> Tests StrategySheet Export Tests should export correct
指标E 自定义节点D "
`;

exports[`<StrategySheet/> Tests StrategySheet Export Tests should export correct data for multi different cycle compare data 2`] = `
" 日期 2022-09 2022-10 2022-11 2021年净增完成度 趋势 2022
指标 数值 环比 同比 数值 环比 数值 环比 同比 净增完成度 趋势 数值 环比
自定义节点A -
自定义节点A 指标A 377 3877 4324 42% - - 377
自定义节点A 指标A 指标B 377 324 377 324 -0.02 - - 377 324
自定义节点A 指标A 自定义节点B
自定义节点A 指标A 指标C 324 377 0 - - 324
自定义节点A 指标A 指标D 377 324 377 324 0.02 - - 377 324
自定义节点A 自定义节点E
指标E 377 324 0.02 - -
指标E 自定义节点C
指标E 自定义节点D "
`;

exports[`<StrategySheet/> Tests should render correctly row nodes 1`] = `
Array [
Object {
Expand Down Expand Up @@ -284,48 +164,3 @@ Array [
},
]
`;

exports[`<StrategySheet/> Tests should render correctly row nodes 2`] = `
Array [
Object {
"field": "custom-node-1",
"value": "自定义节点A",
},
Object {
"field": "measure-a",
"value": "指标A",
},
Object {
"field": "measure-b",
"value": "指标B",
},
Object {
"field": "custom-node-2",
"value": "自定义节点B",
},
Object {
"field": "measure-c",
"value": "指标C",
},
Object {
"field": "measure-d",
"value": "指标D",
},
Object {
"field": "custom-node-5",
"value": "自定义节点E",
},
Object {
"field": "measure-e",
"value": "指标E",
},
Object {
"field": "custom-node-3",
"value": "自定义节点C",
},
Object {
"field": "custom-node-4",
"value": "自定义节点D",
},
]
`;
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ exports[`Tooltip Common Components Tests render custom react component icon 1`]
class="antv-s2-tooltip-operator"
>
<ul
class="ant-menu-overflow ant-menu ant-menu-root ant-menu-horizontal ant-menu-light css-dev-only-do-not-override-qnu6hi"
class="ant-menu-overflow ant-menu ant-menu-root ant-menu-horizontal ant-menu-light css-dev-only-do-not-override-49qm"
data-menu-list="true"
role="menu"
tabindex="0"
Expand Down Expand Up @@ -198,7 +198,7 @@ exports[`Tooltip Common Components Tests render hide icon: TooltipOperator 1`] =
class="antv-s2-tooltip-operator"
>
<ul
class="ant-menu-overflow ant-menu ant-menu-root ant-menu-horizontal ant-menu-light css-dev-only-do-not-override-qnu6hi"
class="ant-menu-overflow ant-menu ant-menu-root ant-menu-horizontal ant-menu-light css-dev-only-do-not-override-49qm"
data-menu-list="true"
role="menu"
tabindex="0"
Expand Down Expand Up @@ -287,7 +287,7 @@ exports[`Tooltip Common Components Tests render sort tooltip: TooltipOperator 1`
class="antv-s2-tooltip-operator"
>
<ul
class="ant-menu ant-menu-root ant-menu-vertical ant-menu-light css-dev-only-do-not-override-qnu6hi"
class="ant-menu ant-menu-root ant-menu-vertical ant-menu-light css-dev-only-do-not-override-49qm"
data-menu-list="true"
role="menu"
tabindex="0"
Expand Down Expand Up @@ -415,7 +415,7 @@ exports[`Tooltip Component Tests should render sort menu and select { key: 'asc'
class="antv-s2-tooltip-operator"
>
<ul
class="ant-menu ant-menu-root ant-menu-vertical ant-menu-light css-dev-only-do-not-override-qnu6hi"
class="ant-menu ant-menu-root ant-menu-vertical ant-menu-light css-dev-only-do-not-override-49qm"
data-menu-list="true"
role="menu"
tabindex="0"
Expand Down Expand Up @@ -543,7 +543,7 @@ exports[`Tooltip Component Tests should render sort menu and select { key: 'desc
class="antv-s2-tooltip-operator"
>
<ul
class="ant-menu ant-menu-root ant-menu-vertical ant-menu-light css-dev-only-do-not-override-qnu6hi"
class="ant-menu ant-menu-root ant-menu-vertical ant-menu-light css-dev-only-do-not-override-49qm"
data-menu-list="true"
role="menu"
tabindex="0"
Expand Down Expand Up @@ -671,7 +671,7 @@ exports[`Tooltip Component Tests should render sort menu and select { key: 'none
class="antv-s2-tooltip-operator"
>
<ul
class="ant-menu ant-menu-root ant-menu-vertical ant-menu-light css-dev-only-do-not-override-qnu6hi"
class="ant-menu ant-menu-root ant-menu-vertical ant-menu-light css-dev-only-do-not-override-49qm"
data-menu-list="true"
role="menu"
tabindex="0"
Expand Down

0 comments on commit 008220f

Please sign in to comment.