Skip to content

Commit

Permalink
test: 调整单测路径
Browse files Browse the repository at this point in the history
  • Loading branch information
lijinke666 committed Sep 12, 2024
1 parent c258aec commit 691016b
Show file tree
Hide file tree
Showing 33 changed files with 133 additions and 130 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ exports[`AdvancedSort Component Tests should render component 1`] = `
class="antv-s2-advanced-sort"
>
<button
class="ant-btn css-dev-only-do-not-override-3rel02 ant-btn-default ant-btn-sm antv-s2-advanced-sort-btn"
class="ant-btn css-dev-only-do-not-override-qnu6hi ant-btn-default ant-btn-sm antv-s2-advanced-sort-btn"
type="button"
>
<span
Expand Down Expand Up @@ -46,7 +46,7 @@ exports[`AdvancedSort Component Tests should render custom icon and text 1`] = `
class="antv-s2-advanced-sort test"
>
<button
class="ant-btn css-dev-only-do-not-override-3rel02 ant-btn-default ant-btn-sm antv-s2-advanced-sort-btn"
class="ant-btn css-dev-only-do-not-override-qnu6hi ant-btn-default ant-btn-sm antv-s2-advanced-sort-btn"
type="button"
>
<span
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
exports[`CustomSort Component Tests should render component 1`] = `
<DocumentFragment>
<div
class="ant-card ant-card-bordered antv-s2-advanced-sort-card-content css-dev-only-do-not-override-3rel02"
class="ant-card ant-card-bordered antv-s2-advanced-sort-card-content css-dev-only-do-not-override-qnu6hi"
>
<div
class="ant-card-body"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { StepForwardOutlined } from '@ant-design/icons';
import type { BaseDataSet } from '@antv/s2';
import { fireEvent, render, screen } from '@testing-library/react';
import React from 'react';
import { getMockSheetInstance } from '../../../../../../s2-react/__tests__/util/helpers';
import { getMockSheetInstance } from '../../../../../s2-react/__tests__/util/helpers';

describe('AdvancedSort Component Tests', () => {
const sheetInstance = getMockSheetInstance();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ exports[`Radio Group Component Tests should render correctly 1`] = `
class="antv-s2-radio-group-content"
>
<div
class="ant-radio-group ant-radio-group-outline ant-radio-group-small css-dev-only-do-not-override-3rel02"
class="ant-radio-group ant-radio-group-outline ant-radio-group-small css-dev-only-do-not-override-qnu6hi"
/>
</span>
</div>
Expand All @@ -33,7 +33,7 @@ exports[`Radio Group Component Tests should render custom options 1`] = `
class="antv-s2-radio-group-content"
>
<div
class="ant-radio-group ant-radio-group-solid ant-radio-group-small css-dev-only-do-not-override-3rel02"
class="ant-radio-group ant-radio-group-solid ant-radio-group-small css-dev-only-do-not-override-qnu6hi"
/>
</span>
</div>
Expand All @@ -52,7 +52,7 @@ exports[`Radio Group Component Tests should render icon only 1`] = `
class="antv-s2-radio-group-content"
>
<div
class="ant-radio-group ant-radio-group-outline ant-radio-group-small css-dev-only-do-not-override-3rel02"
class="ant-radio-group ant-radio-group-outline ant-radio-group-small css-dev-only-do-not-override-qnu6hi"
/>
</span>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
exports[`Reset Group Component Tests should render collapsed group 1`] = `
<DocumentFragment>
<div
class="ant-collapse ant-collapse-icon-position-start ant-collapse-borderless antv-s2-reset-group css-dev-only-do-not-override-3rel02"
class="ant-collapse ant-collapse-icon-position-start ant-collapse-borderless antv-s2-reset-group css-dev-only-do-not-override-qnu6hi"
>
<div
class="ant-collapse-item antv-s2-reset-group-panel"
Expand Down Expand Up @@ -82,7 +82,7 @@ exports[`Reset Group Component Tests should render collapsed group 1`] = `
exports[`Reset Group Component Tests should render correctly 1`] = `
<DocumentFragment>
<div
class="ant-collapse ant-collapse-icon-position-start ant-collapse-borderless antv-s2-reset-group css-dev-only-do-not-override-3rel02"
class="ant-collapse ant-collapse-icon-position-start ant-collapse-borderless antv-s2-reset-group css-dev-only-do-not-override-qnu6hi"
>
<div
class="ant-collapse-item ant-collapse-item-active antv-s2-reset-group-panel"
Expand Down Expand Up @@ -169,7 +169,7 @@ exports[`Reset Group Component Tests should render correctly 1`] = `
exports[`Reset Group Component Tests should render custom style and class name 1`] = `
<DocumentFragment>
<div
class="ant-collapse ant-collapse-icon-position-start ant-collapse-borderless antv-s2-reset-group test css-dev-only-do-not-override-3rel02"
class="ant-collapse ant-collapse-icon-position-start ant-collapse-borderless antv-s2-reset-group test css-dev-only-do-not-override-qnu6hi"
style="padding: 10px;"
>
<div
Expand Down Expand Up @@ -257,7 +257,7 @@ exports[`Reset Group Component Tests should render custom style and class name 1
exports[`Reset Group Component Tests should render custom width 1`] = `
<DocumentFragment>
<div
class="ant-collapse ant-collapse-icon-position-start ant-collapse-borderless antv-s2-reset-group css-dev-only-do-not-override-3rel02"
class="ant-collapse ant-collapse-icon-position-start ant-collapse-borderless antv-s2-reset-group css-dev-only-do-not-override-qnu6hi"
>
<div
class="ant-collapse-item ant-collapse-item-active antv-s2-reset-group-panel"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ exports[`DrillDown Component Tests should render component 1`] = `
选择下钻维度
</div>
<button
class="ant-btn css-dev-only-do-not-override-3rel02 ant-btn-link"
class="ant-btn css-dev-only-do-not-override-qnu6hi ant-btn-link"
disabled=""
type="button"
>
Expand All @@ -24,7 +24,7 @@ exports[`DrillDown Component Tests should render component 1`] = `
</button>
</header>
<span
class="ant-input-affix-wrapper css-dev-only-do-not-override-3rel02 ant-input-outlined antv-s2-drill-down-search"
class="ant-input-affix-wrapper css-dev-only-do-not-override-qnu6hi ant-input-outlined antv-s2-drill-down-search"
>
<span
class="ant-input-prefix"
Expand All @@ -50,7 +50,7 @@ exports[`DrillDown Component Tests should render component 1`] = `
</span>
</span>
<input
class="ant-input css-dev-only-do-not-override-3rel02"
class="ant-input css-dev-only-do-not-override-qnu6hi"
placeholder="搜索字段"
type="text"
value=""
Expand Down Expand Up @@ -90,7 +90,7 @@ exports[`DrillDown Component Tests should render component 1`] = `
class="antv-s2-drill-down-extra"
/>
<div
class="css-dev-only-do-not-override-3rel02 ant-empty antv-s2-drill-down-empty"
class="css-dev-only-do-not-override-qnu6hi ant-empty antv-s2-drill-down-empty"
>
<div
class="ant-empty-image"
Expand All @@ -102,6 +102,9 @@ exports[`DrillDown Component Tests should render component 1`] = `
width="184"
xmlns="http://www.w3.org/2000/svg"
>
<title>
empty image
</title>
<g
fill="none"
fill-rule="evenodd"
Expand Down Expand Up @@ -163,7 +166,7 @@ exports[`DrillDown Component Tests should render component 1`] = `
</div>
</div>
<ul
class="ant-menu ant-menu-root ant-menu-vertical ant-menu-light antv-s2-drill-down-menu css-dev-only-do-not-override-3rel02"
class="ant-menu ant-menu-root ant-menu-vertical ant-menu-light antv-s2-drill-down-menu css-dev-only-do-not-override-qnu6hi"
data-menu-list="true"
role="menu"
tabindex="0"
Expand All @@ -190,7 +193,7 @@ exports[`DrillDown Component Tests should render custom config 1`] = `
下钻
</div>
<button
class="ant-btn css-dev-only-do-not-override-3rel02 ant-btn-link"
class="ant-btn css-dev-only-do-not-override-qnu6hi ant-btn-link"
disabled=""
type="button"
>
Expand All @@ -200,7 +203,7 @@ exports[`DrillDown Component Tests should render custom config 1`] = `
</button>
</header>
<span
class="ant-input-affix-wrapper css-dev-only-do-not-override-3rel02 ant-input-outlined antv-s2-drill-down-search"
class="ant-input-affix-wrapper css-dev-only-do-not-override-qnu6hi ant-input-outlined antv-s2-drill-down-search"
>
<span
class="ant-input-prefix"
Expand All @@ -226,7 +229,7 @@ exports[`DrillDown Component Tests should render custom config 1`] = `
</span>
</span>
<input
class="ant-input css-dev-only-do-not-override-3rel02"
class="ant-input css-dev-only-do-not-override-qnu6hi"
placeholder="搜索"
type="text"
value=""
Expand Down Expand Up @@ -268,7 +271,7 @@ exports[`DrillDown Component Tests should render custom config 1`] = `
extra
</div>
<div
class="css-dev-only-do-not-override-3rel02 ant-empty antv-s2-drill-down-empty"
class="css-dev-only-do-not-override-qnu6hi ant-empty antv-s2-drill-down-empty"
>
<div
class="ant-empty-image"
Expand All @@ -280,6 +283,9 @@ exports[`DrillDown Component Tests should render custom config 1`] = `
width="184"
xmlns="http://www.w3.org/2000/svg"
>
<title>
empty image
</title>
<g
fill="none"
fill-rule="evenodd"
Expand Down Expand Up @@ -341,7 +347,7 @@ exports[`DrillDown Component Tests should render custom config 1`] = `
</div>
</div>
<ul
class="ant-menu ant-menu-root ant-menu-vertical ant-menu-light antv-s2-drill-down-menu css-dev-only-do-not-override-3rel02"
class="ant-menu ant-menu-root ant-menu-vertical ant-menu-light antv-s2-drill-down-menu css-dev-only-do-not-override-qnu6hi"
data-menu-list="true"
role="menu"
tabindex="0"
Expand All @@ -368,7 +374,7 @@ exports[`DrillDown Component Tests should render custom dataset 1`] = `
选择下钻维度
</div>
<button
class="ant-btn css-dev-only-do-not-override-3rel02 ant-btn-link"
class="ant-btn css-dev-only-do-not-override-qnu6hi ant-btn-link"
disabled=""
type="button"
>
Expand All @@ -378,7 +384,7 @@ exports[`DrillDown Component Tests should render custom dataset 1`] = `
</button>
</header>
<span
class="ant-input-affix-wrapper css-dev-only-do-not-override-3rel02 ant-input-outlined antv-s2-drill-down-search"
class="ant-input-affix-wrapper css-dev-only-do-not-override-qnu6hi ant-input-outlined antv-s2-drill-down-search"
>
<span
class="ant-input-prefix"
Expand All @@ -404,7 +410,7 @@ exports[`DrillDown Component Tests should render custom dataset 1`] = `
</span>
</span>
<input
class="ant-input css-dev-only-do-not-override-3rel02"
class="ant-input css-dev-only-do-not-override-qnu6hi"
placeholder="搜索字段"
type="text"
value=""
Expand Down Expand Up @@ -444,7 +450,7 @@ exports[`DrillDown Component Tests should render custom dataset 1`] = `
class="antv-s2-drill-down-extra"
/>
<ul
class="ant-menu ant-menu-root ant-menu-vertical ant-menu-light antv-s2-drill-down-menu css-dev-only-do-not-override-3rel02"
class="ant-menu ant-menu-root ant-menu-vertical ant-menu-light antv-s2-drill-down-menu css-dev-only-do-not-override-qnu6hi"
data-menu-list="true"
role="menu"
tabindex="0"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
exports[`Export Component Tests should render component for strategy export 1`] = `
<DocumentFragment>
<button
class="ant-btn css-dev-only-do-not-override-3rel02 ant-btn-text ant-dropdown-trigger antv-s2-export"
class="ant-btn css-dev-only-do-not-override-qnu6hi ant-btn-text ant-dropdown-trigger antv-s2-export"
type="button"
>
<span
Expand Down Expand Up @@ -42,7 +42,7 @@ exports[`Export Component Tests should render custom children 1`] = `
exports[`Export Component Tests should render default component 1`] = `
<DocumentFragment>
<button
class="ant-btn css-dev-only-do-not-override-3rel02 ant-btn-text ant-dropdown-trigger antv-s2-export test"
class="ant-btn css-dev-only-do-not-override-qnu6hi ant-btn-text ant-dropdown-trigger antv-s2-export test"
type="button"
>
<span
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { Export, StrategyExport } from '@/components';
import type { BaseFacet } from '@antv/s2';
import { fireEvent, render, screen, waitFor } from '@testing-library/react';
import React from 'react';
import { getMockSheetInstance } from '../../../../../../s2-react/__tests__/util/helpers';
import { getMockSheetInstance } from '../../../../../s2-react/__tests__/util/helpers';

describe('Export Component Tests', () => {
const sheetInstance = getMockSheetInstance();
Expand Down
Loading

0 comments on commit 691016b

Please sign in to comment.