Commit bc31bd04 authored by Coung Ngo's avatar Coung Ngo

Update Jira Import test

Update test in response to MR review
parent 78c720ae
......@@ -11,27 +11,27 @@ describe('JiraImportApp', () => {
});
describe('set up Jira integration page', () => {
it('is shown when Jira integration is not configured', () => {
beforeEach(() => {
wrapper = shallowMount(JiraImportApp, {
propsData: {
isJiraConfigured: false,
isJiraConfigured: true,
projectPath: 'gitlab-org/gitlab-test',
setupIllustration: 'illustration.svg',
},
});
expect(wrapper.find(JiraImportSetup).exists()).toBe(true);
});
it('is not shown when Jira integration is configured', () => {
wrapper = shallowMount(JiraImportApp, {
propsData: {
isJiraConfigured: true,
projectPath: 'gitlab-org/gitlab-test',
setupIllustration: 'illustration.svg',
},
it('is shown when Jira integration is not configured', () => {
wrapper.setProps({
isJiraConfigured: false,
});
return wrapper.vm.$nextTick(() => {
expect(wrapper.find(JiraImportSetup).exists()).toBe(true);
});
});
it('is not shown when Jira integration is configured', () => {
expect(wrapper.find(JiraImportSetup).exists()).toBe(false);
});
});
......
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