mirror of
https://github.com/ansible/awx.git
synced 2026-05-19 23:07:42 -02:30
Add close button to job detail and test
This commit is contained in:
@@ -12,4 +12,13 @@ describe('<JobDetail />', () => {
|
||||
<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();
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user