Replace static fixture for shortcuts_issuable_spec (!7685)

This commit is contained in:
winniehell 2016-11-23 01:08:54 +01:00
parent 448c19aab1
commit 31a4894a09
3 changed files with 8 additions and 4 deletions

View file

@ -0,0 +1,4 @@
---
title: Replace static fixture for shortcuts_issuable_spec
merge_request: 7685
author: winniehell

View file

@ -1,2 +0,0 @@
%form.js-main-target-form
%textarea#note_note

View file

@ -4,9 +4,11 @@
(function() {
describe('ShortcutsIssuable', function() {
fixture.preload('issuable.html');
var fixtureName = 'issues/open-issue.html.raw';
fixture.preload(fixtureName);
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 describe('#replyWithSelectedText', function() {