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 {
<template>
<gl-dropdown
ref="dropdown"
v-gl-tooltip.hover
v-gl-tooltip.hover.ds0
data-testid="mini-pipeline-graph-dropdown"
:title="stage.title"
variant="link"
......
---
title: Reduce pipeline tooltip delay to 0
merge_request: 59155
author:
type: changed
......@@ -11,10 +11,15 @@ const dropdownPath = 'path.json';
describe('Pipelines stage component', () => {
let wrapper;
let mock;
let glTooltipDirectiveMock;
const createComponent = (props = {}) => {
glTooltipDirectiveMock = jest.fn();
wrapper = mount(PipelineStage, {
attachTo: document.body,
directives: {
GlTooltip: glTooltipDirectiveMock,
},
propsData: {
stage: {
status: {
......@@ -62,6 +67,10 @@ describe('Pipelines stage component', () => {
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', () => {
expect(findDropdown().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