diff --git a/awx/ui_next/src/screens/Job/JobOutput/JobOutput.jsx b/awx/ui_next/src/screens/Job/JobOutput/JobOutput.jsx index dcae5a48dc..6e97e03269 100644 --- a/awx/ui_next/src/screens/Job/JobOutput/JobOutput.jsx +++ b/awx/ui_next/src/screens/Job/JobOutput/JobOutput.jsx @@ -14,12 +14,18 @@ class JobOutput extends Component { return ( - {job.name} - Heading and Job Stats placeholder
{/*Heading and Job Stats */} - Host Status Bar placeholder
{/*Host Status Bar */} - {/* Filter and Pagination */} + {job.name} + {/*Heading and Job Stats */} + {/*Host Status Bar */} + + {/* Filter and Pagination */} Filter placeholder +
); } diff --git a/awx/ui_next/src/screens/Job/JobOutput/shared/MenuControls.jsx b/awx/ui_next/src/screens/Job/JobOutput/shared/MenuControls.jsx index a36373bfd9..8d135110dd 100644 --- a/awx/ui_next/src/screens/Job/JobOutput/shared/MenuControls.jsx +++ b/awx/ui_next/src/screens/Job/JobOutput/shared/MenuControls.jsx @@ -26,29 +26,19 @@ class MenuControls extends Component { render() { return ( - - - - - diff --git a/awx/ui_next/src/screens/Job/JobOutput/shared/MenuControls.test.jsx b/awx/ui_next/src/screens/Job/JobOutput/shared/MenuControls.test.jsx new file mode 100644 index 0000000000..ab63883778 --- /dev/null +++ b/awx/ui_next/src/screens/Job/JobOutput/shared/MenuControls.test.jsx @@ -0,0 +1,35 @@ +import React from 'react'; +import { mount } from 'enzyme'; +import MenuControls from './MenuControls'; + +let wrapper; +let PlusIcon; +let AngleDoubleUpIcon; +let AngleDoubleDownIcon; +let AngleUpIcon; +let AngleDownIcon; + +const findChildren = () => { + PlusIcon = wrapper.find('PlusIcon'); + AngleDoubleUpIcon = wrapper.find('AngleDoubleUpIcon'); + AngleDoubleDownIcon = wrapper.find('AngleDoubleDownIcon'); + AngleUpIcon = wrapper.find('AngleUpIcon'); + AngleDownIcon = wrapper.find('AngleDownIcon'); +} + +describe('MenuControls', () => { + test('should render successfully', () => { + wrapper = mount(); + expect(wrapper).toHaveLength(1); + }); + + test('should render menu control icons', () => { + wrapper = mount(); + findChildren(); + expect(PlusIcon.length).toBe(1); + expect(AngleDoubleUpIcon.length).toBe(1); + expect(AngleDoubleDownIcon.length).toBe(1); + expect(AngleUpIcon.length).toBe(1); + expect(AngleDownIcon.length).toBe(1); + }); +});