Skip to content
Snippets Groups Projects
Commit 61f3eb67 authored by Ammar Alakkad's avatar Ammar Alakkad :baby:
Browse files

Migrate ci_validate.vue to GlDisclosure

parent 6c20f43a
No related branches found
No related tags found
2 merge requests!122597doc/gitaly: Remove references to removed metrics,!118735Migrate ci_validate.vue to GlDisclosure
......@@ -2,7 +2,7 @@
import {
GlAlert,
GlButton,
GlDropdown,
GlDisclosureDropdown,
GlIcon,
GlLoadingIcon,
GlLink,
......@@ -61,7 +61,7 @@ export default {
CiLintResults,
GlAlert,
GlButton,
GlDropdown,
GlDisclosureDropdown,
GlIcon,
GlLoadingIcon,
GlLink,
......@@ -195,11 +195,11 @@ export default {
<div class="gl-display-flex gl-justify-content-space-between gl-mt-3">
<div>
<label>{{ $options.i18n.pipelineSource }}</label>
<gl-dropdown
<gl-disclosure-dropdown
v-gl-tooltip.hover
class="gl-ml-3"
:title="$options.i18n.pipelineSourceTooltip"
:text="$options.i18n.pipelineSourceDefault"
:toggle-text="$options.i18n.pipelineSourceDefault"
disabled
data-testid="pipeline-source"
/>
......
import { GlAlert, GlDropdown, GlIcon, GlLoadingIcon, GlPopover } from '@gitlab/ui';
import { GlAlert, GlDisclosureDropdown, GlIcon, GlLoadingIcon, GlPopover } from '@gitlab/ui';
import { nextTick } from 'vue';
import { createLocalVue } from '@vue/test-utils';
import VueApollo from 'vue-apollo';
......@@ -90,7 +90,7 @@ describe('Pipeline Editor Validate Tab', () => {
const findHelpIcon = () => wrapper.findComponent(GlIcon);
const findIllustration = () => wrapper.findByRole('img');
const findLoadingIcon = () => wrapper.findComponent(GlLoadingIcon);
const findPipelineSource = () => wrapper.findComponent(GlDropdown);
const findPipelineSource = () => wrapper.findComponent(GlDisclosureDropdown);
const findPopover = () => wrapper.findComponent(GlPopover);
const findCiLintResults = () => wrapper.findComponent(CiLintResults);
const findResultsCta = () => wrapper.findByTestId('resimulate-pipeline-button');
......@@ -118,7 +118,7 @@ describe('Pipeline Editor Validate Tab', () => {
it('renders disabled pipeline source dropdown', () => {
expect(findPipelineSource().exists()).toBe(true);
expect(findPipelineSource().attributes('text')).toBe(i18n.pipelineSourceDefault);
expect(findPipelineSource().attributes('toggletext')).toBe(i18n.pipelineSourceDefault);
expect(findPipelineSource().props('disabled')).toBe(true);
});
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment