Commit db22be51 authored by Miguel Rincon's avatar Miguel Rincon

Implemented FE changes from review

parent 642d9604
...@@ -10,14 +10,14 @@ export default { ...@@ -10,14 +10,14 @@ export default {
directives: { directives: {
GlTooltip: GlTooltipDirective, GlTooltip: GlTooltipDirective,
}, },
routes,
i18n: { i18n: {
backToDashboard: s__('Metrics|Back to dashboard'), backToDashboard: s__('Metrics|Back to dashboard'),
}, },
routes,
}; };
</script> </script>
<template> <template>
<div class="d-flex gl-align-items-baseline"> <div class="gl-display-flex gl-align-items-baseline">
<gl-button <gl-button
v-gl-tooltip v-gl-tooltip
icon="go-back" icon="go-back"
......
...@@ -18,7 +18,7 @@ describe('monitoring/pages/panel_new_page', () => { ...@@ -18,7 +18,7 @@ describe('monitoring/pages/panel_new_page', () => {
let wrapper; let wrapper;
let $route; let $route;
const buildWrapper = (propsData = {}, routeParams = { dashboard }) => { const mountComponent = (propsData = {}, routeParams = { dashboard }) => {
$route = { $route = {
params: routeParams, params: routeParams,
}; };
...@@ -42,7 +42,7 @@ describe('monitoring/pages/panel_new_page', () => { ...@@ -42,7 +42,7 @@ describe('monitoring/pages/panel_new_page', () => {
describe('back to dashboard button', () => { describe('back to dashboard button', () => {
it('is rendered', () => { it('is rendered', () => {
buildWrapper(); mountComponent();
expect(findBackButton().exists()).toBe(true); expect(findBackButton().exists()).toBe(true);
expect(findBackButton().props('icon')).toBe('go-back'); expect(findBackButton().props('icon')).toBe('go-back');
}); });
......
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