Commit 0761da4e authored by Enrique Alcántara's avatar Enrique Alcántara

Merge branch 'reduce-pipline-tooltip-delay-to-zero' into 'master'

Reduce pipeline tooltip delay to 0

See merge request gitlab-org/gitlab!59155
parents fcad648b 8229bed2
...@@ -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