fix test failures in board_new_issue_spec.js on Chrome 60
This commit is contained in:
parent
5a332c5974
commit
e289b8cccb
1 changed files with 6 additions and 2 deletions
|
@ -30,6 +30,8 @@ describe('Issue boards new issue form', () => {
|
|||
};
|
||||
|
||||
beforeEach((done) => {
|
||||
setFixtures('<div class="test-container"></div>');
|
||||
|
||||
const BoardNewIssueComp = Vue.extend(boardNewIssue);
|
||||
|
||||
Vue.http.interceptors.push(boardsMockInterceptor);
|
||||
|
@ -46,15 +48,17 @@ describe('Issue boards new issue form', () => {
|
|||
propsData: {
|
||||
list,
|
||||
},
|
||||
}).$mount();
|
||||
}).$mount(document.querySelector('.test-container'));
|
||||
|
||||
Vue.nextTick()
|
||||
.then(done)
|
||||
.catch(done.fail);
|
||||
});
|
||||
|
||||
afterEach(() => vm.$destroy());
|
||||
|
||||
it('calls submit if submit button is clicked', (done) => {
|
||||
spyOn(vm, 'submit');
|
||||
spyOn(vm, 'submit').and.callFake(e => e.preventDefault());
|
||||
vm.title = 'Testing Title';
|
||||
|
||||
Vue.nextTick()
|
||||
|
|
Loading…
Reference in a new issue