Commit 1919ae96 authored by Alfredo Sumaran's avatar Alfredo Sumaran

Merge branch 'shortcuts-issuable-fixture' into 'master'

Replace static fixture for shortcuts_issuable_spec

## What does this MR do?

Replace `issuable.html.haml` for `shortcuts_issuable_spec.js` by already existing dynamically generated fixture.

## What are the relevant issue numbers?

#24753

See merge request !7685
parents 14545f46 31a4894a
---
title: Replace static fixture for shortcuts_issuable_spec
merge_request: 7685
author: winniehell
%form.js-main-target-form
%textarea#note_note
...@@ -4,9 +4,11 @@ ...@@ -4,9 +4,11 @@
(function() { (function() {
describe('ShortcutsIssuable', function() { describe('ShortcutsIssuable', function() {
fixture.preload('issuable.html'); var fixtureName = 'issues/open-issue.html.raw';
fixture.preload(fixtureName);
beforeEach(function() { beforeEach(function() {
fixture.load('issuable.html'); fixture.load(fixtureName);
document.querySelector('.js-new-note-form').classList.add('js-main-target-form');
return this.shortcut = new ShortcutsIssuable(); return this.shortcut = new ShortcutsIssuable();
}); });
return describe('#replyWithSelectedText', function() { return describe('#replyWithSelectedText', function() {
......
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