From 6d7b7a437a4d5b40c51b025aa3d5f89abd08109a Mon Sep 17 00:00:00 2001 From: dolymood Date: Fri, 19 Jan 2018 16:52:00 +0800 Subject: [PATCH] update(test): upload support hidden upload btn --- test/unit/specs/upload.spec.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test/unit/specs/upload.spec.js b/test/unit/specs/upload.spec.js index 410db32bf..5e038ef9a 100644 --- a/test/unit/specs/upload.spec.js +++ b/test/unit/specs/upload.spec.js @@ -67,6 +67,9 @@ describe('Upload.vue', () => { .to.equal('cube-upload-file-status') expect(allFiles[0].querySelector('.cube-upload-file-progress').textContent.trim()) .to.equal('0%') + // hide upload btn + expect(vm.$el.querySelector('.cube-upload-btn').style.display) + .to.equal('none') }, 50) // start uploading setTimeout(() => {