summaryrefslogtreecommitdiff
path: root/spec/javascripts/issue_show
diff options
context:
space:
mode:
authorPhil Hughes <me@iamphill.com>2017-05-22 09:53:55 +0100
committerPhil Hughes <me@iamphill.com>2017-05-22 09:53:55 +0100
commit95efe5b3e32775e8b18d1a63f939855a3daa4a4e (patch)
tree351d89cd2124c314b2d1a25e59f885d30106ac9d /spec/javascripts/issue_show
parent59db8b2ff46c9ec9676bea6720dfa8e7ca4c489f (diff)
downloadgitlab-ce-95efe5b3e32775e8b18d1a63f939855a3daa4a4e.tar.gz
Added test to check if warning is not visible
[ci skip]
Diffstat (limited to 'spec/javascripts/issue_show')
-rw-r--r--spec/javascripts/issue_show/components/form_spec.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/spec/javascripts/issue_show/components/form_spec.js b/spec/javascripts/issue_show/components/form_spec.js
index 16793a1fc9b..d91dc3ce1d0 100644
--- a/spec/javascripts/issue_show/components/form_spec.js
+++ b/spec/javascripts/issue_show/components/form_spec.js
@@ -10,6 +10,7 @@ describe('Inline edit form component', () => {
vm = new Component({
propsData: {
canDestroy: true,
+ canMove: true,
formState: {
title: 'b',
description: 'a',
@@ -17,12 +18,19 @@ describe('Inline edit form component', () => {
},
markdownPreviewUrl: '/',
markdownDocs: '/',
+ projectsAutocompleteUrl: '/',
},
}).$mount();
Vue.nextTick(done);
});
+ it('hides locked warning by default', () => {
+ expect(
+ vm.$el.querySelector('.alert'),
+ ).toBeNull();
+ });
+
it('shows locked warning if formState is different', (done) => {
vm.formState.lockedWarningVisible = true;