Commit c4eac02d authored by Fatih Acet's avatar Fatih Acet

IssueNotesRefactor: Fix quick submit spec.

parent 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%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment