test: refactor test cases of Timeline with testing library (#35654)
test: refactor test cases of Timeline with testing library (#35654)

* test: refactor test cases of TimeLine

* fix: lint errors
icaife/ant-design,ant-design/ant-design,ant-design/ant-design,elevensky/ant-design,ant-design/ant-design,icaife/ant-design,elevensky/ant-design,zheeeng/ant-design,icaife/ant-design,elevensky/ant-design,icaife/ant-design,zheeeng/ant-design,zheeeng/ant-design,ant-design/ant-design,zheeeng/ant-design,elevensky/ant-design