mirror of
https://github.com/ansible/awx.git
synced 2026-02-18 19:50:05 -03:30
Add close button to job detail and test
This commit is contained in:
@@ -10,7 +10,7 @@ describe('<Jobs />', () => {
|
||||
);
|
||||
});
|
||||
|
||||
test('should display correct breadcrumb heading', () => {
|
||||
test('should display a breadcrumb heading', () => {
|
||||
const history = createMemoryHistory({
|
||||
initialEntries: ['/jobs'],
|
||||
});
|
||||
@@ -30,7 +30,7 @@ describe('<Jobs />', () => {
|
||||
}
|
||||
}
|
||||
);
|
||||
expect(wrapper.find('BreadcrumbHeading').text()).toEqual('Jobs');
|
||||
expect(wrapper.find('BreadcrumbHeading').length).toBe(1);
|
||||
wrapper.unmount();
|
||||
});
|
||||
});
|
||||
|
||||
@@ -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