From 9cf0dca8fcba49b3dfdda9a9d0836732df14bd4d Mon Sep 17 00:00:00 2001 From: MadCcc <1075746765@qq.com> Date: Fri, 21 Jan 2022 11:49:07 +0800 Subject: [PATCH] test: fix cascader test coverage (#33802) --- components/cascader/__tests__/index.test.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/components/cascader/__tests__/index.test.js b/components/cascader/__tests__/index.test.js index 72c409ffb6..91013cd1e3 100644 --- a/components/cascader/__tests__/index.test.js +++ b/components/cascader/__tests__/index.test.js @@ -475,6 +475,12 @@ describe('Cascader', () => { expect(onChange).toHaveBeenCalledWith(['Zhejiang', 'Hangzhou', 'West Lake'], expect.anything()); }); + it('rtl should work well with placement', () => { + const wrapper = mount(); + + expect(wrapper.find('Trigger').prop('popupPlacement')).toEqual('bottomRight'); + }); + describe('legacy props', () => { it('popupClassName', () => { const errorSpy = jest.spyOn(console, 'error').mockImplementation(() => {});