BigW Consortium Gitlab

Commit 95efe5b3 by Phil Hughes

Added test to check if warning is not visible

[ci skip]
parent 59db8b2f
......@@ -13,7 +13,8 @@
Someone edited the issue at the same time you did. Please check out
<a
:href="currentPath"
target="_blank">the issue</a>
target="_blank"
rel="nofollow">the issue</a>
and make sure your changes will not unintentionally remove theirs.
</div>
</template>
......@@ -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;
......
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