mirror of
https://github.com/ansible/awx.git
synced 2026-03-11 06:29:31 -02:30
25 lines
596 B
JavaScript
25 lines
596 B
JavaScript
import React from 'react';
|
|
import { mountWithContexts } from '../../../../enzymeHelpers';
|
|
import JobDetail from '../../../../../src/pages/Jobs/JobDetail';
|
|
|
|
describe('<JobDetail />', () => {
|
|
const mockDetails = {
|
|
name: 'Foo'
|
|
};
|
|
|
|
test('initially renders succesfully', () => {
|
|
mountWithContexts(
|
|
<JobDetail job={mockDetails} />
|
|
);
|
|
});
|
|
|
|
test('should display a Close button', () => {
|
|
const wrapper = mountWithContexts(
|
|
<JobDetail job={mockDetails} />
|
|
);
|
|
|
|
expect(wrapper.find('Button[aria-label="close"]').length).toBe(1);
|
|
wrapper.unmount();
|
|
});
|
|
});
|