summaryrefslogtreecommitdiff
path: root/spec/frontend/pipelines/components/pipelines_list/pipeline_stage_spec.js
diff options
context:
space:
mode:
Diffstat (limited to 'spec/frontend/pipelines/components/pipelines_list/pipeline_stage_spec.js')
-rw-r--r--spec/frontend/pipelines/components/pipelines_list/pipeline_stage_spec.js9
1 files changed, 9 insertions, 0 deletions
diff --git a/spec/frontend/pipelines/components/pipelines_list/pipeline_stage_spec.js b/spec/frontend/pipelines/components/pipelines_list/pipeline_stage_spec.js
index 60026f69b84..93bc8faa51b 100644
--- a/spec/frontend/pipelines/components/pipelines_list/pipeline_stage_spec.js
+++ b/spec/frontend/pipelines/components/pipelines_list/pipeline_stage_spec.js
@@ -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);