summaryrefslogtreecommitdiff
path: root/spec/frontend/pipeline_editor/pipeline_editor_home_spec.js
diff options
context:
space:
mode:
Diffstat (limited to 'spec/frontend/pipeline_editor/pipeline_editor_home_spec.js')
-rw-r--r--spec/frontend/pipeline_editor/pipeline_editor_home_spec.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/spec/frontend/pipeline_editor/pipeline_editor_home_spec.js b/spec/frontend/pipeline_editor/pipeline_editor_home_spec.js
index e317d1ddcc2..2b06660c4b3 100644
--- a/spec/frontend/pipeline_editor/pipeline_editor_home_spec.js
+++ b/spec/frontend/pipeline_editor/pipeline_editor_home_spec.js
@@ -149,20 +149,20 @@ describe('Pipeline editor home wrapper', () => {
await nextTick();
- expect(findCommitSection().exists()).toBe(shouldShow);
+ expect(findCommitSection().isVisible()).toBe(shouldShow);
},
);
it('shows the commit form again when coming back to the create tab', async () => {
- expect(findCommitSection().exists()).toBe(true);
+ expect(findCommitSection().isVisible()).toBe(true);
findPipelineEditorTabs().vm.$emit('set-current-tab', MERGED_TAB);
await nextTick();
- expect(findCommitSection().exists()).toBe(false);
+ expect(findCommitSection().isVisible()).toBe(false);
findPipelineEditorTabs().vm.$emit('set-current-tab', CREATE_TAB);
await nextTick();
- expect(findCommitSection().exists()).toBe(true);
+ expect(findCommitSection().isVisible()).toBe(true);
});
describe('rendering with tab params', () => {
@@ -178,7 +178,7 @@ describe('Pipeline editor home wrapper', () => {
setWindowLocation(`https://gitlab.test/ci/editor/?tab=${TABS_INDEX[tab]}`);
await createComponent({ stubs: { PipelineEditorTabs } });
- expect(findCommitSection().exists()).toBe(shouldShow);
+ expect(findCommitSection().isVisible()).toBe(shouldShow);
},
);
});