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