提交 c4eac02d 编写于 作者: F Fatih Acet

IssueNotesRefactor: Fix quick submit spec.

上级 d6692113
......@@ -45,7 +45,7 @@ $(document).on('keydown.quick_submit', '.js-quick-submit', (e) => {
if (!$submitButton.attr('disabled')) {
$submitButton.trigger('click', [e]);
if (!gl.utils.isInIssuePage) {
if (!gl.utils.isInIssuePage()) {
$submitButton.disable();
}
}
......
......@@ -7,6 +7,7 @@ describe('Quick Submit behavior', () => {
beforeEach(() => {
loadFixtures('merge_requests/merge_request_with_task_list.html.raw');
$('body').attr('data-page', 'projects:merge_requests:show');
$('form').submit((e) => {
// Prevent a form submit from moving us off the testing page
e.preventDefault();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册