Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boxiang Sun
gitlab-ce
Commits
e289b8cc
Commit
e289b8cc
authored
Aug 17, 2017
by
Mike Greiling
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix test failures in board_new_issue_spec.js on Chrome 60
parent
5a332c59
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
spec/javascripts/boards/board_new_issue_spec.js
spec/javascripts/boards/board_new_issue_spec.js
+6
-2
No files found.
spec/javascripts/boards/board_new_issue_spec.js
View file @
e289b8cc
...
@@ -30,6 +30,8 @@ describe('Issue boards new issue form', () => {
...
@@ -30,6 +30,8 @@ describe('Issue boards new issue form', () => {
};
};
beforeEach
((
done
)
=>
{
beforeEach
((
done
)
=>
{
setFixtures
(
'
<div class="test-container"></div>
'
);
const
BoardNewIssueComp
=
Vue
.
extend
(
boardNewIssue
);
const
BoardNewIssueComp
=
Vue
.
extend
(
boardNewIssue
);
Vue
.
http
.
interceptors
.
push
(
boardsMockInterceptor
);
Vue
.
http
.
interceptors
.
push
(
boardsMockInterceptor
);
...
@@ -46,15 +48,17 @@ describe('Issue boards new issue form', () => {
...
@@ -46,15 +48,17 @@ describe('Issue boards new issue form', () => {
propsData
:
{
propsData
:
{
list
,
list
,
},
},
}).
$mount
();
}).
$mount
(
document
.
querySelector
(
'
.test-container
'
)
);
Vue
.
nextTick
()
Vue
.
nextTick
()
.
then
(
done
)
.
then
(
done
)
.
catch
(
done
.
fail
);
.
catch
(
done
.
fail
);
});
});
afterEach
(()
=>
vm
.
$destroy
());
it
(
'
calls submit if submit button is clicked
'
,
(
done
)
=>
{
it
(
'
calls submit if submit button is clicked
'
,
(
done
)
=>
{
spyOn
(
vm
,
'
submit
'
);
spyOn
(
vm
,
'
submit
'
)
.
and
.
callFake
(
e
=>
e
.
preventDefault
())
;
vm
.
title
=
'
Testing Title
'
;
vm
.
title
=
'
Testing Title
'
;
Vue
.
nextTick
()
Vue
.
nextTick
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment