나는 엠버 구성 요소로 jQuery File Upload을 사용하고 있습니다. 이 플러그인에는 테스트에서 파일 업로드 programmatically과 상호 작용할 수있는 API가 있습니다. 이것은 구성 요소 테스트에서 완벽하게 작동합니다.수락 테스트 파일 업로드
Assertion Failed: You have turned on testing mode, which disabled the run-loop's autorun. You will need to wrap any code with asynchronous side-effects in a run
내 테스트에서 미리보기가 :
// some steps before this.
andThen(() => {
Ember.run(() => {
find('.file-upload').fileupload('send', { files: [{name: 'file.doc' }] });
});
});
});
모든 포인터가 많이 주시면 감사하겠습니다 그러나 입학 시험에서 나는이 오류가 발생합니다.