Commit 95efe5b3 authored by Phil Hughes's avatar Phil Hughes

Added test to check if warning is not visible

[ci skip]
parent 59db8b2f
...@@ -13,7 +13,8 @@ ...@@ -13,7 +13,8 @@
Someone edited the issue at the same time you did. Please check out Someone edited the issue at the same time you did. Please check out
<a <a
:href="currentPath" :href="currentPath"
target="_blank">the issue</a> target="_blank"
rel="nofollow">the issue</a>
and make sure your changes will not unintentionally remove theirs. and make sure your changes will not unintentionally remove theirs.
</div> </div>
</template> </template>
...@@ -10,6 +10,7 @@ describe('Inline edit form component', () => { ...@@ -10,6 +10,7 @@ describe('Inline edit form component', () => {
vm = new Component({ vm = new Component({
propsData: { propsData: {
canDestroy: true, canDestroy: true,
canMove: true,
formState: { formState: {
title: 'b', title: 'b',
description: 'a', description: 'a',
...@@ -17,12 +18,19 @@ describe('Inline edit form component', () => { ...@@ -17,12 +18,19 @@ describe('Inline edit form component', () => {
}, },
markdownPreviewUrl: '/', markdownPreviewUrl: '/',
markdownDocs: '/', markdownDocs: '/',
projectsAutocompleteUrl: '/',
}, },
}).$mount(); }).$mount();
Vue.nextTick(done); Vue.nextTick(done);
}); });
it('hides locked warning by default', () => {
expect(
vm.$el.querySelector('.alert'),
).toBeNull();
});
it('shows locked warning if formState is different', (done) => { it('shows locked warning if formState is different', (done) => {
vm.formState.lockedWarningVisible = true; vm.formState.lockedWarningVisible = true;
......
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