Commit 619351e0 authored by Marcel Amirault's avatar Marcel Amirault

Update tooltip to GitLab UI component

parent 36f93ead
<script>
import { GlIcon } from '@gitlab/ui';
import { GlIcon, GlTooltipDirective } from '@gitlab/ui';
import { __ } from '../../../../locale';
import tooltip from '../../../../vue_shared/directives/tooltip';
const directions = {
up: 'up',
......@@ -10,7 +9,7 @@ const directions = {
export default {
directives: {
tooltip,
GlTooltip: GlTooltipDirective,
},
components: {
GlIcon,
......@@ -46,7 +45,7 @@ export default {
<template>
<div
v-tooltip
v-gl-tooltip
:title="tooltipTitle"
class="controllers-buttons"
data-container="body"
......
......@@ -31,7 +31,7 @@ describe('IDE job log scroll button', () => {
});
it('returns proper title', () => {
expect(wrapper.attributes('data-original-title')).toBe(title);
expect(wrapper.attributes('title')).toBe(title);
});
});
......
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