Replace static fixture for shortcuts_issuable_spec (!7685)
This commit is contained in:
parent
448c19aab1
commit
31a4894a09
3 changed files with 8 additions and 4 deletions
4
changelogs/unreleased/shortcuts-issuable-fixture.yml
Normal file
4
changelogs/unreleased/shortcuts-issuable-fixture.yml
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
---
|
||||||
|
title: Replace static fixture for shortcuts_issuable_spec
|
||||||
|
merge_request: 7685
|
||||||
|
author: winniehell
|
|
@ -1,2 +0,0 @@
|
||||||
%form.js-main-target-form
|
|
||||||
%textarea#note_note
|
|
|
@ -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() {
|
||||||
|
|
Loading…
Reference in a new issue