Commit Graph

280 Commits

Author SHA1 Message Date
二货机器人
437182b2e6 test: Update snapshot 2022-09-28 15:12:47 +08:00
二货机器人
069e44bcc3 chore: merge master 2022-09-28 12:01:20 +08:00
lijianan
1bb58174c3
test: delete icon.svg (#37499) 2022-09-09 16:54:18 +08:00
黑雨
01ca7c7821
test: convert demo to testing-lib (#37381)
* test: replace testing-lib

* test: replace testing-lib

* test: replace testing-lib

* test: update snap

* test: replace testing-lib

* test: replace testing-lib

* test: update for lint

* merge: merge

* test: testing-lib

* test: replace testing-lib

* test: testing-lib

* test: testing-lib

* test: replace testing-lib

* test: replace testing-lib

* test: Replace test aria replacment logic

* test: Update snapshot

* chore: hack for id

* test: clean up

* test: clean demo

* chore: update

* test: snapshot update

* test: fix snapshot rep logic

* test: fix snapshot rep logic

* test: fix snapshot rep logic

* chore: update demo

* test: fix snapshot rep logic

* test: Update snapshot

* test: rest snapshot

* test: update snapshot

* test: Update test case

* test: config env

* chore: clean up

* chore: Use renderServer instead

* test: adjust testing logic

* test: modify test logic

* test: split ssr test

* test: skip if need skip

* chore: ignore test file covv

Co-authored-by: 二货机器人 <smith3816@gmail.com>
2022-09-09 15:51:35 +08:00
二货爱吃白萝卜
7c087deded
chore: Add theme=null export for vite build error (#37462)
* fix: Vite build error

* test: Update snapshot

* chore: Update snapshot
2022-09-08 15:21:42 +08:00
lijianan
f47535a153
test: migrate part of rtlTest tests (#37315)
* test: migrate part of rtlTest tests

* style: performance optimize

* fix: add type

* fix: fallback
2022-09-07 14:18:32 +08:00
MadCcc
e5e2159882 Merge branch 'feature' into master-merge-feature 2022-09-04 14:46:28 +08:00
黑雨
5a2c6edefd
test: replace testing-lib in focusTest (#37280)
* feat: replace testing-lib

* feat: update for lint
2022-08-30 10:09:37 +08:00
二货机器人
cf49149ce7 chore: merge master 2022-08-23 11:53:24 +08:00
lijianan
db0344c85f
test: migrate part of ConfigProvider tests (#37142)
* test: migrate part of ConfigProvider tests

* test: migrate part of ConfigProvider tests

* test: update snap

* test: update snap

* test: migrate part of ConfigProvider tests

* fix: commented error case

* chore: update snapshot name

* test: csp test case

* test: revert test case

* test: Update snapshot

* test: Update ser logic

* test: more cov

* test: cascader snapshit

* test: update match

* test: more detact

* test: more handler

* chore: Update snapshot

* test: Table test case

Co-authored-by: 二货机器人 <smith3816@gmail.com>
2022-08-22 22:54:38 +08:00
二货爱吃白萝卜
304b36a5bf
refactor: Replace Tabs motion (#36943)
* chore: bump rc-tabs

* refactor: use internal motion

* test: Update snapshot

* chore: clean up

* test: Update snapshot

* test: coverage

* test: resolve conflict
2022-08-08 17:01:25 +08:00
clean99
20a2bb3374
fix: testing act error (#36915)
* test: switch act from react-dom/test-utils to testing-library/react

* test: fix jest.runAllTimers usage with act

Co-authored-by: ian.xufeng <ian.xufeng@shopee.com>
2022-08-05 18:27:08 +08:00
二货机器人
ddb97b22ba
chore: collapse title text auto width (#36761)
* chore: collapse title text auto width

* test: fix mock snapshot
2022-07-28 20:30:41 +08:00
dingkang
1ef45439d6
test: replace Cascader test case with test library (#36475)
* test: relpace test case with test library

* test: fix test case

* test: replace snapshot

Co-authored-by: 二货机器人 <smith3816@gmail.com>
2022-07-26 22:27:42 +08:00
二货机器人
d422d71c1e
refactor: Drawer refactor (#36672)
* chore: back part of styl

* chore: all basic

* test: part test case

* test: part test case

* test: more test case

* test: update snapshot

* test: demo test support

* test: update snapshot

* chore: adjust mock logic to inject on rc-drawer instead

* test: more snapshot

* chore: adjust pos

* chore: back of render

* test: drawer demo extends test
2022-07-25 21:04:43 +08:00
二货机器人
d24f67f66b
test: Fix table empty test (#36290) 2022-06-29 12:07:28 +08:00
github-actions[bot]
2c1d5120b5
chore: auto merge branchs (#35910)
branch: merge master into feature
2022-06-06 03:37:12 +00:00
郑国庆
6e55310fca
test: replace Input part test with test lib (#35754)
* test: replace Input part test with test lib

* test: test input case

* test: update textarea case

Co-authored-by: z1399 <zhenggq@dtdream.com>
Co-authored-by: afc163 <afc163@gmail.com>
2022-06-02 16:28:22 +08:00
afc163
6423e22f78 chore: merge feature 2022-06-01 18:28:31 +08:00
afc163
a61671f32f
chore: upgrade to jest-image-snapshot 5.x (#35818) 2022-05-31 10:11:33 +08:00
MadCcc
2d70027f45 Merge branch 'master' into feature-merge-master 2022-05-12 15:56:18 +08:00
afc163
ed4d41676e
chore(deps-dev): upgrade to jest 28 (#35334)
https://jestjs.io/zh-Hans/docs/upgrading-to-jest28
2022-05-09 23:17:26 +08:00
afc163
594f138760 resolve conflict between feature and master 2022-05-08 17:01:54 +08:00
Tom Xu
1719748a29
chore: eslint add consistent-type-imports (#35419)
* chore: eslint add consistent-type-imports

* fix avatar

* Update Item.tsx
2022-05-07 14:31:54 +08:00
github-actions[bot]
85707ff36f
chore: auto merge branchs (#35347)
chore: Feature merge master
2022-05-01 10:16:06 +00:00
Zack Chang
19d5f07c16
test: Rewrite mountTest with testing lib (#35326) 2022-04-29 19:56:15 +08:00
Camol
bdabee4db4
feat(Typography): copyable text support format (#35219)
Co-authored-by: kanweiwei <kanweiwei@nutstore.net>
2022-04-25 09:49:48 +08:00
afc163
30ac6bd4e4
test: wrap React.StrictMode for test cases (#35026)
* test: React StrictMode

* test: fix Spin test

* chore: wrapper enzyme

* test: fix setState

* test: more test cover

* test: more test cover

* test: more test cover

* test: more test cover

* test: more test cover

* test: more test case

* test: more test case

* test: more test case

* test: more test case

* test: more test case

* test: more test case

* test: more test case

* test: more test case

* test: more test case

* test: more test case

* test: more test case

* test: more test case

* test: disable part of it

* test: fix test & add placeholder

* test: Use orign enzyme mount

Co-authored-by: zombiej <smith3816@gmail.com>
2022-04-18 21:02:11 +08:00
MadCcc
e4a87750ac
test: update test cases to testing-lib (#35056) 2022-04-15 23:33:10 +08:00
二货机器人
67ccf39bd3
fix: Notification & message throw createRoot warning in React 18 (#35030)
* chore: bump notification version

* test: notification test case

* test: more test case

* test: part message test

* test: rest message test

* test: notification config test
2022-04-14 18:09:19 +08:00
zombiej
a0d1440050 chore: merge conflict 2022-04-11 17:41:54 +08:00
vagusX
ae4e660a05
feat: add new component Segmented (#34319)
* feat: basic implements in antd

* feat: use rc-segmented

* feat: add some demos

* feat: support dark theme

* docs: add more demos

* feat: support `icon` in segmented

* docs: format content

* test: add test cases

* docs: update docs

* chore: update

* fix: lint issues

* style: add border-radius for selected effect

* style: change border-radius-base

* chore: update gitignore

* feat: segmented support block

* chore: update gitignore

* feat: support block

* feat: add test case

* feat: support size

* docs: update demos

* chore: update

* chore: update

* test: update

* style: update colors

* style: hover and focus styles

* doc: add version mark in docs

* fix: style lint issue

* fix: some lint issues

* doc: add version in demo mds

* doc: add version mark before api details

* Revert "doc: add version in demo mds"

This reverts commit 2a9e86f6ffc2331f7d73eae6edac7c889358a838.

* test: only test for thumb appear

* style: update color vars

* style: add transition

* style: text vertial align

* test: update snapshots

* feat: add preview svg and support dark theme

* fix: update test snapshot

* docs: update docs

* fix: remove useless z-index

* build: add 1kb for bundlesize of antd.variable.min.css

Co-authored-by: taian.lta <taian.lta@antgroup.com>
2022-04-11 11:13:16 +08:00
MadCcc
6776bb8916
docs: demo support react18 (#34843)
* docs: update demo

* chore: add script

* test: fix demo test

* docs: convert demos

* chore: move script

* test: remove react-dom import

* chore: update deps

* docs: update riddle js

* test: fix image test

* docs: fix riddle demo
2022-04-03 23:27:45 +08:00
二货机器人
811fed2fc2
refactor: Update rc-slider (#34234)
* chore: Update rc-slider version

* chore: bump

* chore: update sty;e

* fix: style

* test: update snapshot

* test: all fixed

* fix lint
2022-03-01 14:48:41 +08:00
zombiej
6ed4d855b1 Merge remote-tracking branch 'origin/master' into feature-merge-master 2021-12-27 10:45:42 +08:00
二货机器人
2df11184f4
test: Demo check popup content (#33378)
* auto demo

* chore: update demo snapshot

* fix: trigger mock ref logic

* chore: try 2 test case

* chore: more snapshot

* chore: update snapshot

* chore: fix ts

* chore: split test

* test: Update test case

* chore: fix test order
2021-12-23 11:51:10 +08:00
xrkffgg
a04a4efc8b
Merge pull request #33163 from ant-design/master
chore: merge master into feature
2021-12-05 15:22:48 +08:00
afc163
b34f72b1b6
test: fix ci warnings (#33160) 2021-12-04 17:06:36 +08:00
Stef Schenkelaars
98e36aa036
test: add test helper for accessibility
As proposed in #22343, the components can be automatically validated
for accessibility. This adds a test helper that runs Axe to check
for accessibility violations.
2021-12-02 13:43:24 +01:00
zombiej
1698426161 test: Update snapshot 2021-12-01 22:52:49 +08:00
二货机器人
c6c0662b97
docs: Cascader displayRender data (#33087)
* docs: Cascader displayRender data

* ts: clean up

* test: Update rc-resize-observer version

* test: fix resize related test case

* chore: fix ts error

* test: Fix resize logic
2021-11-30 17:26:51 +08:00
zombiej
dd1670a3b4 chore: merge master 2021-11-26 15:19:31 +08:00
dependabot[bot]
20d5502193
chore(deps-dev): bump eslint-config-airbnb from 18.2.1 to 19.0.0 (#32824)
* chore(deps-dev): bump eslint-config-airbnb from 18.2.1 to 19.0.0

Bumps [eslint-config-airbnb](https://github.com/airbnb/javascript) from 18.2.1 to 19.0.0.
- [Release notes](https://github.com/airbnb/javascript/releases)
- [Commits](https://github.com/airbnb/javascript/compare/eslint-config-airbnb-v18.2.1...eslint-config-airbnb-v19.0.0)

---
updated-dependencies:
- dependency-name: eslint-config-airbnb
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

* fix lint

* fix lint

* fix lint

* fix lint

* fix lint

* fix lint

* fix lint

* fix lint

* fix lint

* chore: code style

* memoize-one

* add comment

* fix lint

* fix lint

* fix lint

* fix lint

* fix lint

* fix lint

* fix lint

* fix lint

* fix lint

* improve useMemo deps

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: afc163 <afc163@gmail.com>
2021-11-26 12:18:21 +08:00
afc163
6d3973fb95
chore(deps-dev): bump eslint-plugin-jest from 24.7.0 to 25.0.1 (#32444)
* chore(deps-dev): bump eslint-plugin-jest from 24.7.0 to 25.0.1

Bumps [eslint-plugin-jest](https://github.com/jest-community/eslint-plugin-jest) from 24.7.0 to 25.0.1.
- [Release notes](https://github.com/jest-community/eslint-plugin-jest/releases)
- [Changelog](https://github.com/jest-community/eslint-plugin-jest/blob/main/CHANGELOG.md)
- [Commits](https://github.com/jest-community/eslint-plugin-jest/compare/v24.7.0...v25.0.1)

---
updated-dependencies:
- dependency-name: eslint-plugin-jest
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

* chore: fix eslint errors and warnings

* fix rc-slider version

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-10-12 13:14:26 +08:00
zombiej
b388da62cc test: Update snapshot 2021-10-08 16:58:51 +08:00
二货机器人
020c4ba7d0
fix: missing default.css (#32116)
* chore: Add CI for compile

* chore: Add missing compile file
2021-09-11 13:28:25 +08:00
二货机器人
282b7c8575
feat: Cascader support multiple mode (#31936)
* chore: Update cascader version

* chore: replace cascader

* chore: default allowClear

* chore: Update docs

* test: Back of part

* test: More snapshot

* test: more and more

* test: Failed of defaultValue

* test: all basic test case

* test: All snapshot

* chore: Update cascader

* chore: disable react/jsx-no-bind

* chore: fix lint

* chore: fix less order

* chore: fix deps

* docs: Update multiple demo

* docs: Add multiple example

* test: Update snapshot

* test: update snapshot
2021-08-31 15:51:02 +08:00
二货机器人
75cd2a9649
fix: lint update (#29336) 2021-02-16 20:40:01 +08:00
陈帅
a4f0957576
docs: add 4.12.0 changelog (#29131)
* docs: add 4.11.3 changelog

* update docs

* Update CHANGELOG.zh-CN.md

Co-authored-by: afc163 <afc163@gmail.com>

* update docs

* add 4.12.0 changelog

* update docs

* fix typo

* Update CHANGELOG.zh-CN.md

Co-authored-by: afc163 <afc163@gmail.com>

* Update CHANGELOG.zh-CN.md

Co-authored-by: afc163 <afc163@gmail.com>

* Update CHANGELOG.en-US.md

Co-authored-by: afc163 <afc163@gmail.com>

* Update CHANGELOG.zh-CN.md

Co-authored-by: afc163 <afc163@gmail.com>

* Update CHANGELOG.en-US.md

Co-authored-by: afc163 <afc163@gmail.com>

* Update CHANGELOG.zh-CN.md

Co-authored-by: afc163 <afc163@gmail.com>

* Update CHANGELOG.en-US.md

Co-authored-by: afc163 <afc163@gmail.com>

* Update CHANGELOG.en-US.md

Co-authored-by: afc163 <afc163@gmail.com>

* fix changelog

* Update CHANGELOG.zh-CN.md

Co-authored-by: afc163 <afc163@gmail.com>

* update docs

* Update CHANGELOG.zh-CN.md

Co-authored-by: xrkffgg <xrkffgg@gmail.com>

* Update CHANGELOG.zh-CN.md

Co-authored-by: einq7 <50612752+AlanCutFlim@users.noreply.github.com>

* fix typo

* fix typo

* Update CHANGELOG.en-US.md

Co-authored-by: afc163 <afc163@gmail.com>

Co-authored-by: afc163 <afc163@gmail.com>
Co-authored-by: xrkffgg <xrkffgg@gmail.com>
Co-authored-by: einq7 <50612752+AlanCutFlim@users.noreply.github.com>
2021-02-02 22:05:31 +08:00
xrkffgg
dcc0ffa016
chore : prettier code (#29123)
* style: prettier code

* update

* Update index.less
2021-01-30 19:39:02 +08:00