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(() => {});