Skip to content

Commit

Permalink
update(test): upload support hidden upload btn
Browse files Browse the repository at this point in the history
  • Loading branch information
dolymood committed Jan 19, 2018
1 parent 5624d81 commit 6d7b7a4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/unit/specs/upload.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -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(() => {
Expand Down

0 comments on commit 6d7b7a4

Please sign in to comment.