Commit 8229bed2 authored by Jarek Ostrowski's avatar Jarek Ostrowski

Reduce pipeline tooltip delay to 0

MR: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/59155
parent 42954bd5
...@@ -103,7 +103,7 @@ export default { ...@@ -103,7 +103,7 @@ export default {
<template> <template>
<gl-dropdown <gl-dropdown
ref="dropdown" ref="dropdown"
v-gl-tooltip.hover v-gl-tooltip.hover.ds0
data-testid="mini-pipeline-graph-dropdown" data-testid="mini-pipeline-graph-dropdown"
:title="stage.title" :title="stage.title"
variant="link" variant="link"
......
---
title: Reduce pipeline tooltip delay to 0
merge_request: 59155
author:
type: changed
...@@ -11,10 +11,15 @@ const dropdownPath = 'path.json'; ...@@ -11,10 +11,15 @@ const dropdownPath = 'path.json';
describe('Pipelines stage component', () => { describe('Pipelines stage component', () => {
let wrapper; let wrapper;
let mock; let mock;
let glTooltipDirectiveMock;
const createComponent = (props = {}) => { const createComponent = (props = {}) => {
glTooltipDirectiveMock = jest.fn();
wrapper = mount(PipelineStage, { wrapper = mount(PipelineStage, {
attachTo: document.body, attachTo: document.body,
directives: {
GlTooltip: glTooltipDirectiveMock,
},
propsData: { propsData: {
stage: { stage: {
status: { status: {
...@@ -62,6 +67,10 @@ describe('Pipelines stage component', () => { ...@@ -62,6 +67,10 @@ describe('Pipelines stage component', () => {
createComponent(); createComponent();
}); });
it('sets up the tooltip to not have a show delay animation', () => {
expect(glTooltipDirectiveMock.mock.calls[0][1].modifiers.ds0).toBe(true);
});
it('should render a dropdown with the status icon', () => { it('should render a dropdown with the status icon', () => {
expect(findDropdown().exists()).toBe(true); expect(findDropdown().exists()).toBe(true);
expect(findDropdownToggle().exists()).toBe(true); expect(findDropdownToggle().exists()).toBe(true);
......
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