Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(ci): Upgrade antd version #603

Merged
merged 1 commit into from
Jun 20, 2024
Merged
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
66 changes: 33 additions & 33 deletions package.json
Original file line number Diff line number Diff line change
@@ -43,78 +43,78 @@
},
"devDependencies": {
"@ant-design/colors": "^7.0.2",
"@ant-design/cssinjs": "^1.19.1",
"@ant-design/icons": "^5.3.6",
"@babel/cli": "^7.24.1",
"@babel/preset-env": "^7.24.4",
"@ant-design/cssinjs": "^1.21.0",
"@ant-design/icons": "^5.3.7",
"@babel/cli": "^7.24.7",
"@babel/preset-env": "^7.24.7",
"@chenshuai2144/less2cssinjs": "^1.0.7",
"@ctrl/tinycolor": "^4.0.3",
"@ctrl/tinycolor": "^4.1.0",
"@emotion/babel-preset-css-prop": "^11.11.0",
"@emotion/css": "^11.11.2",
"@emotion/react": "^11.11.4",
"@emotion/server": "^11.11.0",
"@oceanbase/aliyun-theme": "^0.1.2",
"@qixian.cs/github-contributors-list": "^2.0.1",
"@rc-component/trigger": "^2.0.0",
"@stackblitz/sdk": "^1.9.0",
"@qixian.cs/github-contributors-list": "^2.0.2",
"@rc-component/trigger": "^2.2.0",
"@stackblitz/sdk": "^1.10.0",
"@testing-library/dom": "^9.3.4",
"@testing-library/jest-dom": "^6.4.2",
"@testing-library/react": "^14.2.2",
"@testing-library/jest-dom": "^6.4.6",
"@testing-library/react": "^14.3.1",
"@testing-library/react-hooks": "^8.0.1",
"@testing-library/user-event": "^14.5.2",
"@types/lodash": "^4.17.0",
"@types/node": "^20.12.5",
"@types/react": "^18.2.74",
"@types/lodash": "^4.17.5",
"@types/node": "^20.14.6",
"@types/react": "^18.3.3",
"@umijs/fabric": "^4.0.1",
"@umijs/test": "^4.1.8",
"@vercel/analytics": "^1.2.2",
"antd": "^5.16.1",
"@umijs/test": "^4.2.13",
"@vercel/analytics": "^1.3.1",
"antd": "^5.18.3",
"antd-style": "^3.6.2",
"antd-token-previewer": "^2.0.8",
"babel-jest": "^29.7.0",
"classnames": "^2.5.1",
"copy-to-clipboard": "^3.3.3",
"cross-env": "^7.0.3",
"dayjs": "^1.11.10",
"dumi": "^2.2.17",
"dayjs": "^1.11.11",
"dumi": "^2.3.8",
"eslint-plugin-jest": "^27.9.0",
"execa": "^5.1.1",
"father": "^4.4.0",
"father": "^4.4.4",
"fs-extra": "^11.2.0",
"gh-pages": "^6.1.1",
"glob": "^10.3.12",
"glob": "^10.4.2",
"html2sketch": "^1.0.2",
"husky": "^9.0.11",
"identity-obj-proxy": "^3.0.0",
"isomorphic-fetch": "^3.0.0",
"jest-environment-jsdom": "^29.7.0",
"jsonml-to-react-element": "^1.1.11",
"jsonml.js": "^0.1.0",
"lerna": "^8.1.2",
"lint-staged": "^15.2.2",
"lerna": "^8.1.3",
"lint-staged": "^15.2.7",
"lodash": "^4.17.21",
"mockdate": "^3.0.5",
"prettier": "^3.2.5",
"prettier": "^3.3.2",
"prismjs": "^1.29.0",
"rc-checkbox": "^3.2.0",
"rc-drawer": "^7.1.0",
"rc-checkbox": "^3.3.0",
"rc-drawer": "^7.2.0",
"rc-footer": "^0.6.8",
"rc-resize-observer": "^1.4.0",
"rc-segmented": "^2.3.0",
"rc-tabs": "^14.1.1",
"rc-util": "^5.39.1",
"react": "^18.2.0",
"rc-util": "^5.43.0",
"react": "^18.3.1",
"react-color": "^2.19.3",
"react-copy-to-clipboard": "^5.1.0",
"react-dom": "^18.2.0",
"react-dom": "^18.3.1",
"react-fast-marquee": "^1.6.4",
"react-intl": "^6.6.5",
"react-router-dom": "^6.22.3",
"react-intl": "^6.6.8",
"react-router-dom": "^6.23.1",
"runscript": "^1.6.0",
"ts-node": "^10.9.2",
"typescript": "^5.4.4",
"vanilla-jsoneditor": "^0.23.1",
"vitest": "^1.5.0",
"typescript": "^5.4.5",
"vanilla-jsoneditor": "^0.23.7",
"vitest": "^1.6.0",
"vitest-canvas-mock": "^0.3.3",
"vitest-fetch-mock": "^0.2.2",
"web-vitals": "^3.5.2"
2 changes: 1 addition & 1 deletion packages/charts/package.json
Original file line number Diff line number Diff line change
@@ -31,7 +31,7 @@
"@oceanbase/util": "workspace:^",
"classnames": "^2.5.1",
"lodash": "^4.17.21",
"rc-util": "^5.39.1",
"rc-util": "^5.43.0",
"tinycolor2": "^1.6.0",
"use-resize-observer": "^9.1.0"
},
6 changes: 3 additions & 3 deletions packages/codemod/package.json
Original file line number Diff line number Diff line change
@@ -28,16 +28,16 @@
"command-exists": "^1.2.9",
"execa": "^5.1.1",
"find-up": "^7.0.0",
"glob": "^10.3.12",
"glob": "^10.4.2",
"is-directory": "^0.3.1",
"is-git-clean": "^1.1.0",
"jscodeshift": "^0.15.2",
"lodash": "^4.17.21",
"postcss": "^8.4.38",
"postcss-less": "^6.0.0",
"prettier": "^3.2.5",
"prettier": "^3.3.2",
"read-pkg-up": "^10.1.0",
"semver": "^7.6.0",
"semver": "^7.6.2",
"update-check": "^1.5.4",
"yargs-parser": "^21.1.1"
},
16 changes: 8 additions & 8 deletions packages/design/package.json
Original file line number Diff line number Diff line change
@@ -35,26 +35,26 @@
"postbuild": "cp src/style/reset.css dist/"
},
"dependencies": {
"@ant-design/cssinjs": "^1.19.1",
"@ant-design/cssinjs": "^1.21.0",
"@oceanbase/aliyun-theme": "^0.1.2",
"@oceanbase/icons": "workspace:^",
"@oceanbase/util": "workspace:^",
"ahooks": "^2.10.14",
"antd": "^5.16.1",
"antd": "^5.18.3",
"classnames": "^2.5.1",
"lodash": "^4.17.21",
"lottie-web": "^5.12.2",
"prop-types": "^15.8.1",
"rc-util": "^5.39.1",
"rc-util": "^5.43.0",
"react-sticky-mouse-tooltip": "^0.0.1"
},
"devDependencies": {
"@babel/cli": "^7.24.1",
"@babel/preset-env": "^7.24.4",
"@babel/cli": "^7.24.7",
"@babel/preset-env": "^7.24.7",
"antd-token-previewer": "^2.0.8",
"rc-select": "^14.13.0",
"rc-table": "^7.45.4",
"rc-tree-select": "^5.19.0"
"rc-select": "^14.15.0",
"rc-table": "^7.47.1",
"rc-tree-select": "^5.22.0"
},
"peerDependencies": {
"react": ">=16.9.0",
1 change: 1 addition & 0 deletions packages/design/src/config-provider/index.tsx
Original file line number Diff line number Diff line change
@@ -139,6 +139,7 @@ const ConfigProvider: ConfigProviderType = ({
spin={merge({}, parentContext.spin, spin)}
table={merge({}, parentContext.table, table)}
tabs={merge(
{},
{
indicatorSize: origin => (origin >= 24 ? origin - 16 : origin),
},
51 changes: 17 additions & 34 deletions packages/design/src/form/demo/pro-form.tsx
Original file line number Diff line number Diff line change
@@ -1,40 +1,23 @@
import { Button, Form, Input, message } from '@oceanbase/design';
import React from 'react';

const onFinish = (values: any) => {
message.success('Success');
console.log(values);
};

const onFinishFailed = (errorInfo: any) => {
message.error('Failed');
console.log(errorInfo);
};
import { ConfigProvider } from '@oceanbase/design';
import { ProForm, ProFormText } from '@oceanbase/ui';

const App: React.FC = () => (
<Form
name="basic"
labelCol={{ span: 6 }}
wrapperCol={{ span: 10 }}
onFinish={onFinish}
onFinishFailed={onFinishFailed}
>
<Form.Item
label="Username"
name="username"
rules={[{ required: true, message: 'Please input your username!' }]}
>
<Input />
</Form.Item>
<Form.Item label="Address" name="address">
<Input />
</Form.Item>
<Form.Item wrapperCol={{ offset: 6, span: 10 }}>
<Button type="primary" htmlType="submit">
Submit
</Button>
</Form.Item>
</Form>
<ConfigProvider>
<ProForm name="basic" labelCol={{ span: 6 }} wrapperCol={{ span: 10 }}>
<ProFormText
label="Name"
name="name"
rules={[
{
required: true,
message: 'Name is required',
},
]}
/>
<ProFormText label="Address" name="address" />
</ProForm>
</ConfigProvider>
);

export default App;
1 change: 1 addition & 0 deletions packages/design/src/theme/style/compact.less
Original file line number Diff line number Diff line change
@@ -341,6 +341,7 @@
@colorSuccessTextActive: #00b378;
@colorErrorBg: #ffebeb;
@colorErrorBgHover: #ffd6d6;
@colorErrorBgActive: #ffbcb5;
@colorErrorBorder: #ffb3b3;
@colorErrorBorderHover: #ff7575;
@colorErrorHover: #ff7575;
1 change: 1 addition & 0 deletions packages/design/src/theme/style/dark.less
Original file line number Diff line number Diff line change
@@ -341,6 +341,7 @@
@colorSuccessTextActive: #0e845d;
@colorErrorBg: #2b1416;
@colorErrorBgHover: #44191a;
@colorErrorBgActive: #591f1f;
@colorErrorBorder: #591f1f;
@colorErrorBorderHover: #7b2525;
@colorErrorHover: #e8615b;
1 change: 1 addition & 0 deletions packages/design/src/theme/style/default.less
Original file line number Diff line number Diff line change
@@ -341,6 +341,7 @@
@colorSuccessTextActive: #00b378;
@colorErrorBg: #ffebeb;
@colorErrorBgHover: #ffd6d6;
@colorErrorBgActive: #ffbcb5;
@colorErrorBorder: #ffb3b3;
@colorErrorBorderHover: #ff7575;
@colorErrorHover: #ff7575;
2 changes: 1 addition & 1 deletion packages/icons/package.json
Original file line number Diff line number Diff line change
@@ -36,7 +36,7 @@
},
"dependencies": {
"@ant-design/colors": "^7.0.2",
"@ant-design/icons": "^5.3.6",
"@ant-design/icons": "^5.3.7",
"@oceanbase/icons-svg": "^1.0.6"
},
"peerDependencies": {
12 changes: 6 additions & 6 deletions packages/ui/package.json
Original file line number Diff line number Diff line change
@@ -34,15 +34,15 @@
"build": "NODE_OPTIONS=--max_old_space_size=4096 father build"
},
"dependencies": {
"@ant-design/cssinjs": "^1.19.1",
"@ant-design/pro-components": "^2.7.0",
"@ant-design/cssinjs": "^1.21.0",
"@ant-design/pro-components": "^2.7.10",
"@antv/g6": "3.4.10",
"@oceanbase/design": "workspace:^",
"@oceanbase/icons": "workspace:^",
"@oceanbase/util": "workspace:^",
"ahooks": "^2.10.14",
"classnames": "^2.5.1",
"dayjs": "^1.11.10",
"dayjs": "^1.11.11",
"diff": "^5.2.0",
"highlight.js": "^11.9.0",
"highlightjs-solidity": "^2.0.6",
@@ -51,15 +51,15 @@
"moment": "^2.30.1",
"path-to-regexp": "^6.2.2",
"randexp": "^0.5.3",
"rc-util": "^5.39.1",
"rc-util": "^5.43.0",
"react-copy-to-clipboard": "^5.1.0",
"react-json-view": "^1.21.3",
"react-split-pane": "^0.1.92",
"screenfull": "^6.0.2"
},
"devDependencies": {
"@ant-design/pro-form": "^2.25.1",
"@ant-design/pro-layout": "^7.19.0"
"@ant-design/pro-form": "^2.28.0",
"@ant-design/pro-layout": "^7.19.8"
},
"peerDependencies": {
"react": ">=16.9.0",
2 changes: 1 addition & 1 deletion packages/util/package.json
Original file line number Diff line number Diff line change
@@ -32,7 +32,7 @@
},
"dependencies": {
"ahooks": "^2.10.14",
"filesize": "^10.1.1",
"filesize": "^10.1.2",
"is-url": "^1.2.4",
"lodash": "^4.17.21",
"moment": "^2.30.1",
8,834 changes: 4,139 additions & 4,695 deletions pnpm-lock.yaml

Large diffs are not rendered by default.


Unchanged files with check annotations Beta

it('render for items', () => {
const { container, asFragment } = render(<DescriptionsTest1 />);
expect(container.querySelector('.ant-descriptions-item-no-colon')).toBeFalsy();
expect(asFragment().firstChild).toMatchSnapshot();

Check failure on line 56 in packages/design/src/descriptions/__tests__/index.test.tsx

GitHub Actions / test (16.x, ubuntu-latest)

src/descriptions/__tests__/index.test.tsx > Descriptions > render for items

Error: Snapshot `Descriptions > render for items 1` mismatched - Expected + Received @@ -32,11 +32,11 @@ </span> <span class="ant-descriptions-item-content" > <span - class="ant-typography ant-typography-ellipsis ant-typography-single-line ant-typography-ellipsis-single-line" + class="ant-typography ant-typography-ellipsis ant-typography-ellipsis-single-line" > Zhou Maomao </span> </span> </div> @@ -55,11 +55,11 @@ </span> <span class="ant-descriptions-item-content" > <span - class="ant-typography ant-typography-ellipsis ant-typography-single-line ant-typography-ellipsis-single-line" + class="ant-typography ant-typography-ellipsis ant-typography-ellipsis-single-line" > 1810000000 </span> </span> </div> @@ -78,11 +78,11 @@ </span> <span class="ant-descriptions-item-content" > <span - class="ant-typography ant-typography-ellipsis ant-typography-single-line ant-typography-ellipsis-single-line" + class="ant-typography ant-typography-ellipsis ant-typography-ellipsis-single-line" > Hangzhou, Zhejiang </span> </span> </div> @@ -105,11 +105,11 @@ </span> <span class="ant-descriptions-item-content" > <span - class="ant-typography ant-typography-ellipsis ant-typography-single-line ant-typography-ellipsis-single-line" + class="ant-typography ant-typography-ellipsis ant-typography-ellipsis-single-line" > empty </span> </span> </div> @@ -128,11 +128,11 @@ </span> <span class="ant-descriptions-item-content" > <span - class="ant-typography ant-typography-ellipsis ant-typography-single-line ant-typography-ellipsis-single-line" + class="ant-typography ant-typography-ellipsis ant-typography-ellipsis-single-line" > No. 18, Wantang Road, Xihu District, Hangzhou, Zhejiang, China </span> </span> </div> ❯ src/descriptions/__tests__/index.test.tsx:56:37
});
it('render for Descriptions.Item', () => {
const { container, asFragment } = render(<DescriptionsTest2 />);
expect(container.querySelector('.ant-descriptions-item-no-colon')).toBeFalsy();
expect(asFragment().firstChild).toMatchSnapshot();

Check failure on line 62 in packages/design/src/descriptions/__tests__/index.test.tsx

GitHub Actions / test (16.x, ubuntu-latest)

src/descriptions/__tests__/index.test.tsx > Descriptions > render for Descriptions.Item

Error: Snapshot `Descriptions > render for Descriptions.Item 1` mismatched - Expected + Received @@ -32,11 +32,11 @@ </span> <span class="ant-descriptions-item-content" > <span - class="ant-typography ant-typography-ellipsis ant-typography-single-line ant-typography-ellipsis-single-line" + class="ant-typography ant-typography-ellipsis ant-typography-ellipsis-single-line" > Zhou Maomao </span> </span> </div> @@ -55,11 +55,11 @@ </span> <span class="ant-descriptions-item-content" > <span - class="ant-typography ant-typography-ellipsis ant-typography-single-line ant-typography-ellipsis-single-line" + class="ant-typography ant-typography-ellipsis ant-typography-ellipsis-single-line" > 1810000000 </span> </span> </div> @@ -78,11 +78,11 @@ </span> <span class="ant-descriptions-item-content" > <span - class="ant-typography ant-typography-ellipsis ant-typography-single-line ant-typography-ellipsis-single-line" + class="ant-typography ant-typography-ellipsis ant-typography-ellipsis-single-line" > Hangzhou, Zhejiang </span> </span> </div> @@ -105,11 +105,11 @@ </span> <span class="ant-descriptions-item-content" > <span - class="ant-typography ant-typography-ellipsis ant-typography-single-line ant-typography-ellipsis-single-line" + class="ant-typography ant-typography-ellipsis ant-typography-ellipsis-single-line" > empty </span> </span> </div> @@ -128,11 +128,11 @@ </span> <span class="ant-descriptions-item-content" > <span - class="ant-typography ant-typography-ellipsis ant-typography-single-line ant-typography-ellipsis-single-line" + class="ant-typography ant-typography-ellipsis ant-typography-ellipsis-single-line" > No. 18, Wantang Road, Xihu District, Hangzhou, Zhejiang, China </span> </span> </div> ❯ src/descriptions/__tests__/index.test.tsx:62:37
});
it('remove colon for vertical layout by default for items', () => {
const { container, asFragment } = render(<DescriptionsTest1 layout="vertical" />);
expect(container.querySelector('.ant-descriptions-item-no-colon')).toBeTruthy();
expect(asFragment().firstChild).toMatchSnapshot();

Check failure on line 68 in packages/design/src/descriptions/__tests__/index.test.tsx

GitHub Actions / test (16.x, ubuntu-latest)

src/descriptions/__tests__/index.test.tsx > Descriptions > remove colon for vertical layout by default for items

Error: Snapshot `Descriptions > remove colon for vertical layout by default for items 1` mismatched - Expected + Received @@ -73,11 +73,11 @@ > <span class="ant-descriptions-item-content" > <span - class="ant-typography ant-typography-ellipsis ant-typography-single-line ant-typography-ellipsis-single-line" + class="ant-typography ant-typography-ellipsis ant-typography-ellipsis-single-line" > Zhou Maomao </span> </span> </div> @@ -91,11 +91,11 @@ > <span class="ant-descriptions-item-content" > <span - class="ant-typography ant-typography-ellipsis ant-typography-single-line ant-typography-ellipsis-single-line" + class="ant-typography ant-typography-ellipsis ant-typography-ellipsis-single-line" > 1810000000 </span> </span> </div> @@ -109,11 +109,11 @@ > <span class="ant-descriptions-item-content" > <span - class="ant-typography ant-typography-ellipsis ant-typography-single-line ant-typography-ellipsis-single-line" + class="ant-typography ant-typography-ellipsis ant-typography-ellipsis-single-line" > Hangzhou, Zhejiang </span> </span> </div> @@ -163,11 +163,11 @@ > <span class="ant-descriptions-item-content" > <span - class="ant-typography ant-typography-ellipsis ant-typography-single-line ant-typography-ellipsis-single-line" + class="ant-typography ant-typography-ellipsis ant-typography-ellipsis-single-line" > empty </span> </span> </div> @@ -181,11 +181,11 @@ > <span class="ant-descriptions-item-content" > <span - class="ant-typography ant-typography-ellipsis ant-typography-single-line ant-typography-ellipsis-single-line" + class="ant-typography ant-typography-ellipsis ant-typography-ellipsis-single-line" > No. 18, Wantang Road, Xihu District, Hangzhou, Zhejiang, China </span> </span> </div> ❯ src/descriptions/__tests__/index.test.tsx:68:37
});
it('remove colon for vertical layout by default for Descriptions.Item', () => {
const { container, asFragment } = render(<DescriptionsTest2 layout="vertical" />);
expect(container.querySelector('.ant-descriptions-item-no-colon')).toBeTruthy();
expect(asFragment().firstChild).toMatchSnapshot();

Check failure on line 74 in packages/design/src/descriptions/__tests__/index.test.tsx

GitHub Actions / test (16.x, ubuntu-latest)

src/descriptions/__tests__/index.test.tsx > Descriptions > remove colon for vertical layout by default for Descriptions.Item

Error: Snapshot `Descriptions > remove colon for vertical layout by default for Descriptions.Item 1` mismatched - Expected + Received @@ -73,11 +73,11 @@ > <span class="ant-descriptions-item-content" > <span - class="ant-typography ant-typography-ellipsis ant-typography-single-line ant-typography-ellipsis-single-line" + class="ant-typography ant-typography-ellipsis ant-typography-ellipsis-single-line" > Zhou Maomao </span> </span> </div> @@ -91,11 +91,11 @@ > <span class="ant-descriptions-item-content" > <span - class="ant-typography ant-typography-ellipsis ant-typography-single-line ant-typography-ellipsis-single-line" + class="ant-typography ant-typography-ellipsis ant-typography-ellipsis-single-line" > 1810000000 </span> </span> </div> @@ -109,11 +109,11 @@ > <span class="ant-descriptions-item-content" > <span - class="ant-typography ant-typography-ellipsis ant-typography-single-line ant-typography-ellipsis-single-line" + class="ant-typography ant-typography-ellipsis ant-typography-ellipsis-single-line" > Hangzhou, Zhejiang </span> </span> </div> @@ -163,11 +163,11 @@ > <span class="ant-descriptions-item-content" > <span - class="ant-typography ant-typography-ellipsis ant-typography-single-line ant-typography-ellipsis-single-line" + class="ant-typography ant-typography-ellipsis ant-typography-ellipsis-single-line" > empty </span> </span> </div> @@ -181,11 +181,11 @@ > <span class="ant-descriptions-item-content" > <span - class="ant-typography ant-typography-ellipsis ant-typography-single-line ant-typography-ellipsis-single-line" + class="ant-typography ant-typography-ellipsis ant-typography-ellipsis-single-line" > No. 18, Wantang Road, Xihu District, Hangzhou, Zhejiang, China </span> </span> </div> ❯ src/descriptions/__tests__/index.test.tsx:74:37
});
it('contentProps should work for items', () => {
/>
);
expect(container.querySelector('.ant-typography-ellipsis')).toBeTruthy();
expect(asFragment().firstChild).toMatchSnapshot();

Check failure on line 91 in packages/design/src/descriptions/__tests__/index.test.tsx

GitHub Actions / test (16.x, ubuntu-latest)

src/descriptions/__tests__/index.test.tsx > Descriptions > contentProps should work for items

Error: Snapshot `Descriptions > contentProps should work for items 1` mismatched - Expected + Received @@ -32,11 +32,11 @@ </span> <span class="ant-descriptions-item-content" > <span - class="ant-typography ant-typography-ellipsis ant-typography-single-line ant-typography-ellipsis-single-line" + class="ant-typography ant-typography-ellipsis ant-typography-ellipsis-single-line" > This is long long long long long long long long long long long Link </span> </span> </div> ❯ src/descriptions/__tests__/index.test.tsx:91:37
});
it('contentProps should work for Descriptions.Item', () => {
</Descriptions>
);
expect(container.querySelector('.ant-typography-ellipsis')).toBeTruthy();
expect(asFragment().firstChild).toMatchSnapshot();

Check failure on line 103 in packages/design/src/descriptions/__tests__/index.test.tsx

GitHub Actions / test (16.x, ubuntu-latest)

src/descriptions/__tests__/index.test.tsx > Descriptions > contentProps should work for Descriptions.Item

Error: Snapshot `Descriptions > contentProps should work for Descriptions.Item 1` mismatched - Expected + Received @@ -32,11 +32,11 @@ </span> <span class="ant-descriptions-item-content" > <span - class="ant-typography ant-typography-ellipsis ant-typography-single-line ant-typography-ellipsis-single-line" + class="ant-typography ant-typography-ellipsis ant-typography-ellipsis-single-line" > This is long long long long long long long long long long long Link </span> </span> </div> ❯ src/descriptions/__tests__/index.test.tsx:103:37
});
});
]}
/>
);
expect(asFragment().firstChild).toMatchSnapshot();

Check failure on line 30 in packages/design/src/segmented/__tests__/index.test.tsx

GitHub Actions / test (16.x, ubuntu-latest)

src/segmented/__tests__/index.test.tsx > Segmented > render options with ellipsis

Error: Snapshot `Segmented > render options with ellipsis 1` mismatched - Expected + Received @@ -42,11 +42,11 @@ /> <div class="ant-segmented-item-label" > <span - class="ant-typography ant-typography-ellipsis ant-typography-single-line ant-typography-ellipsis-single-line" + class="ant-typography ant-typography-ellipsis ant-typography-ellipsis-single-line" > longtext </span> </div> </label> ❯ src/segmented/__tests__/index.test.tsx:30:37
});
});
expect(container.querySelector('.ant-typography')).toBeTruthy();
expect(container.querySelector('.ant-typography-ellipsis')).toBeTruthy();
expect(container.querySelector('.ant-tag-ellipsis')).toBeTruthy();
expect(asFragment().firstChild).toMatchSnapshot();

Check failure on line 32 in packages/design/src/tag/__tests__/index.test.tsx

GitHub Actions / test (16.x, ubuntu-latest)

src/tag/__tests__/index.test.tsx > Tag > default ellipsis

Error: Snapshot `Tag > default ellipsis 1` mismatched - Expected + Received @@ -1,10 +1,10 @@ <span class="ant-tag ant-tag-ellipsis" > <span - class="ant-typography ant-typography-ellipsis ant-typography-single-line ant-typography-ellipsis-single-line" + class="ant-typography ant-typography-ellipsis ant-typography-ellipsis-single-line" > <div id="test" > Show ellipsis for excess.Show ellipsis for excess.Show ellipsis for excess.Show ellipsis for excess.Show ellipsis for excess.Show ellipsis for excess.Show ellipsis for excess.Show ellipsis for excess.Show ellipsis for excess.Show ellipsis for excess.Show ellipsis for excess.Show ellipsis for excess.Show ellipsis for excess.Show ellipsis for excess. ❯ src/tag/__tests__/index.test.tsx:32:37
});
it('custom ellipsis', async () => {
expect(container.querySelector('.ant-typography')).toBeTruthy();
expect(container.querySelector('.ant-typography-ellipsis')).toBeTruthy();
expect(container.querySelector('.ant-tag-ellipsis')).toBeTruthy();
expect(asFragment().firstChild).toMatchSnapshot();

Check failure on line 48 in packages/design/src/tag/__tests__/index.test.tsx

GitHub Actions / test (16.x, ubuntu-latest)

src/tag/__tests__/index.test.tsx > Tag > custom ellipsis

Error: Snapshot `Tag > custom ellipsis 1` mismatched - Expected + Received @@ -1,10 +1,10 @@ <span class="ant-tag ant-tag-ellipsis" > <span - class="ant-typography ant-typography-ellipsis ant-typography-single-line ant-typography-ellipsis-single-line" + class="ant-typography ant-typography-ellipsis ant-typography-ellipsis-single-line" > <div id="test" > Show ellipsis for excess.Show ellipsis for excess.Show ellipsis for excess.Show ellipsis for excess.Show ellipsis for excess.Show ellipsis for excess.Show ellipsis for excess.Show ellipsis for excess.Show ellipsis for excess.Show ellipsis for excess.Show ellipsis for excess.Show ellipsis for excess.Show ellipsis for excess.Show ellipsis for excess. ❯ src/tag/__tests__/index.test.tsx:48:37
});
it('disable ellipsis', async () => {
describe('PageContainer', () => {
it('basic', () => {
const { asFragment } = render(<BasicDemo />);
expect(asFragment().firstChild).toMatchSnapshot();

Check failure on line 9 in packages/ui/src/PageContainer/__tests__/index.test.tsx

GitHub Actions / test (16.x, ubuntu-latest)

src/PageContainer/__tests__/index.test.tsx > PageContainer > basic

Error: Snapshot `PageContainer > basic 1` mismatched - Expected + Received @@ -129,11 +129,11 @@ </span> <span class="ant-descriptions-item-content" > <span - class="ant-typography ant-typography-ellipsis ant-typography-single-line ant-typography-ellipsis-single-line" + class="ant-typography ant-typography-ellipsis ant-typography-ellipsis-single-line" > 曲丽丽 </span> </span> </div> @@ -152,11 +152,11 @@ </span> <span class="ant-descriptions-item-content" > <span - class="ant-typography ant-typography-ellipsis ant-typography-single-line ant-typography-ellipsis-single-line" + class="ant-typography ant-typography-ellipsis ant-typography-ellipsis-single-line" > 1810000000 </span> </span> </div> @@ -175,11 +175,11 @@ </span> <span class="ant-descriptions-item-content" > <span - class="ant-typography ant-typography-ellipsis ant-typography-single-line ant-typography-ellipsis-single-line" + class="ant-typography ant-typography-ellipsis ant-typography-ellipsis-single-line" > 浙江省杭州市西湖区工专路 </span> </span> </div> @@ -202,11 +202,11 @@ </span> <span class="ant-descriptions-item-content" > <span - class="ant-typography ant-typography-ellipsis ant-typography-single-line ant-typography-ellipsis-single-line" + class="ant-typography ant-typography-ellipsis ant-typography-ellipsis-single-line" > <a> 421421 </a> </span> @@ -227,11 +227,11 @@ </span> <span class="ant-descriptions-item-content" > <span - class="ant-typography ant-typography-ellipsis ant-typography-single-line ant-typography-ellipsis-single-line" + class="ant-typography ant-typography-ellipsis ant-typography-ellipsis-single-line" > 2017-01-10 </span> </span> </div> @@ -250,11 +250,11 @@ </span> <span class="ant-descriptions-item-content" > <span - class="ant-typography ant-typography-ellipsis ant-typography-single-line ant-typography-ellipsis-single-line" + class="ant-typography ant-typography-ellipsis ant-typography-ellipsis-single-line" > 这是备注 </span> </span> </div> ❯ src/PageContainer/__tests__/index.
});
it('extra and footer', () => {