diff options
author | Phil Hughes <me@iamphill.com> | 2017-05-18 15:50:25 +0100 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2017-05-18 15:50:25 +0100 |
commit | c225007a7238d8ed18a1b344a2bc354672b25408 (patch) | |
tree | 7109bc743fdfdf93e233d9b5024a0c1dbc08819b | |
parent | b8647134d926659b1629e9a58ce042a5ffdf4250 (diff) | |
download | gitlab-ce-c225007a7238d8ed18a1b344a2bc354672b25408.tar.gz |
Added back a removed test
[ci skip]
-rw-r--r-- | spec/javascripts/issue_show/components/app_spec.js | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/spec/javascripts/issue_show/components/app_spec.js b/spec/javascripts/issue_show/components/app_spec.js index 8848ca4e078..e1643f56d5d 100644 --- a/spec/javascripts/issue_show/components/app_spec.js +++ b/spec/javascripts/issue_show/components/app_spec.js @@ -14,7 +14,7 @@ const issueShowInterceptor = data => (request, next) => { })); }; -fdescribe('Issuable output', () => { +describe('Issuable output', () => { document.body.innerHTML = '<span id="task_status"></span>'; let vm; @@ -92,6 +92,22 @@ fdescribe('Issuable output', () => { }); }); + it('does not update formState if form is already open', (done) => { + vm.openForm(); + + vm.state.titleText = 'testing 123'; + + vm.openForm(); + + Vue.nextTick(() => { + expect( + vm.store.formState.title, + ).not.toBe('testing 123'); + + done(); + }); + }); + describe('updateIssuable', () => { it('reloads the page if the confidential status has changed', (done) => { spyOn(gl.utils, 'visitUrl'); |