From 29a858d741cd96036bbca546ac73f76c080373c1 Mon Sep 17 00:00:00 2001 From: "mark.ck" Date: Thu, 23 May 2019 12:18:01 +0800 Subject: [PATCH] test(Transfer): add test case --- test/transfer/index-spec.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/test/transfer/index-spec.js b/test/transfer/index-spec.js index 38d978b3fc..fbd9c50390 100644 --- a/test/transfer/index-spec.js +++ b/test/transfer/index-spec.js @@ -568,6 +568,15 @@ describe('Transfer', () => { assert(wrapper.find('#transfer-test-panel-header-left').length === 1) assert(wrapper.find('#transfer-test-panel-header-right').length === 1) }); + + it('should disabled item not move', () => { + wrapper = mount(); + findFooter(wrapper, 0) + .find('a.next-transfer-panel-move-all') + .simulate('click'); + assert(findItems(wrapper, 0).length === 1); + assert(findItems(wrapper, 1).length === 3); + }); }); function findPanel(wrapper, panelIndex) {