diff --git a/components/switch/__tests__/index.test.js b/components/switch/__tests__/index.test.js
index 0742de8e0..73061036f 100644
--- a/components/switch/__tests__/index.test.js
+++ b/components/switch/__tests__/index.test.js
@@ -3,6 +3,7 @@ import { mount } from '@vue/test-utils';
import focusTest from '../../../tests/shared/focusTest';
import { resetWarned } from '../../_util/warning';
import mountTest from '../../../tests/shared/mountTest';
+import { ref } from 'vue';
describe('Switch', () => {
focusTest(Switch);
@@ -10,8 +11,16 @@ describe('Switch', () => {
it('should has click wave effect', async () => {
const wrapper = mount({
- render() {
- return ;
+ setup() {
+ const checked = ref(false);
+ return () => {
+ return (
+ (checked.value = !checked.value)}
+ >
+ );
+ };
},
});
wrapper.find('.ant-switch').trigger('click');
diff --git a/components/typography/__tests__/index.test.js b/components/typography/__tests__/index.test.js
index 61f77f4c2..762fddccf 100644
--- a/components/typography/__tests__/index.test.js
+++ b/components/typography/__tests__/index.test.js
@@ -253,7 +253,7 @@ describe('Typography', () => {
describe('editable', async () => {
function testStep(name, submitFunc, expectFunc) {
- it(name, async () => {
+ fit(name, async () => {
const onStart = jest.fn();
const onChange = jest.fn();
@@ -286,7 +286,7 @@ describe('Typography', () => {
await sleep(20);
wrapper.find('textarea').element.value = 'Bamboo';
- wrapper.find('textarea').trigger('change');
+ //wrapper.find('textarea').trigger('change');
if (submitFunc) {
submitFunc(wrapper);