mirror of
https://github.com/ansible/awx.git
synced 2026-01-22 23:18:03 -03:30
Mount with contexts now that i18n is used on workflow start node
This commit is contained in:
parent
510b4197ac
commit
65c71b812e
@ -1,5 +1,5 @@
|
||||
import React from 'react';
|
||||
import { mount } from 'enzyme';
|
||||
import { mountWithContexts } from '../../../testUtils/enzymeHelpers';
|
||||
import { WorkflowStateContext } from '../../contexts/Workflow';
|
||||
import WorkflowStartNode from './WorkflowStartNode';
|
||||
|
||||
@ -12,7 +12,7 @@ const nodePositions = {
|
||||
|
||||
describe('WorkflowStartNode', () => {
|
||||
test('mounts successfully', () => {
|
||||
const wrapper = mount(
|
||||
const wrapper = mountWithContexts(
|
||||
<svg>
|
||||
<WorkflowStateContext.Provider value={{ nodePositions }}>
|
||||
<WorkflowStartNode
|
||||
@ -25,7 +25,7 @@ describe('WorkflowStartNode', () => {
|
||||
expect(wrapper).toHaveLength(1);
|
||||
});
|
||||
test('tooltip shown on hover', () => {
|
||||
const wrapper = mount(
|
||||
const wrapper = mountWithContexts(
|
||||
<svg>
|
||||
<WorkflowStateContext.Provider value={{ nodePositions }}>
|
||||
<WorkflowStartNode nodePositions={nodePositions} showActionTooltip />
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user