Skip to content

Commit 6d7b7a4

Browse files
committed
update(test): upload support hidden upload btn
1 parent 5624d81 commit 6d7b7a4

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

test/unit/specs/upload.spec.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,9 @@ describe('Upload.vue', () => {
6767
.to.equal('cube-upload-file-status')
6868
expect(allFiles[0].querySelector('.cube-upload-file-progress').textContent.trim())
6969
.to.equal('0%')
70+
// hide upload btn
71+
expect(vm.$el.querySelector('.cube-upload-btn').style.display)
72+
.to.equal('none')
7073
}, 50)
7174
// start uploading
7275
setTimeout(() => {

0 commit comments

Comments
 (0)