Commit 6dd78e33 authored by Natalia Tepluhina's avatar Natalia Tepluhina

Merge branch 'migrate-miss-prom-btn' into 'master'

Migration of Serverless Section "Install Prometheus" Button

Closes #219761

See merge request gitlab-org/gitlab!43456
parents 1a5c1a11 ba0163a5
<script>
import { GlDeprecatedButton, GlLink } from '@gitlab/ui';
import { GlButton, GlLink } from '@gitlab/ui';
import { mapState } from 'vuex';
import { s__ } from '../../locale';
export default {
components: {
GlDeprecatedButton,
GlButton,
GlLink,
},
props: {
......@@ -47,9 +47,9 @@ export default {
</p>
<div v-if="!missingData" class="text-left">
<gl-deprecated-button :href="clustersPath" variant="success">
<gl-button :href="clustersPath" variant="success" category="primary">
{{ s__('ServerlessDetails|Install Prometheus') }}
</gl-deprecated-button>
</gl-button>
</div>
</div>
</div>
......
import { GlDeprecatedButton } from '@gitlab/ui';
import { GlButton } from '@gitlab/ui';
import { shallowMount } from '@vue/test-utils';
import { createStore } from '~/serverless/store';
import missingPrometheusComponent from '~/serverless/components/missing_prometheus.vue';
......@@ -24,7 +24,7 @@ describe('missingPrometheusComponent', () => {
'Function invocation metrics require Prometheus to be installed first.',
);
expect(wrapper.find(GlDeprecatedButton).attributes('variant')).toBe('success');
expect(wrapper.find(GlButton).attributes('variant')).toBe('success');
});
it('should render no prometheus data message', () => {
......
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