mirror of
https://github.com/ansible/awx.git
synced 2024-10-27 17:55:10 +03:00
Remove close button from job details
This commit is contained in:
parent
3dc8a10e85
commit
a517b15c26
@ -279,14 +279,6 @@ function JobDetail({ job, i18n, history }) {
|
||||
>
|
||||
{i18n._(t`Delete`)}
|
||||
</Button>
|
||||
<Button
|
||||
variant="secondary"
|
||||
aria-label="close"
|
||||
component={Link}
|
||||
to="/jobs"
|
||||
>
|
||||
{i18n._(t`Close`)}
|
||||
</Button>
|
||||
</ActionButtonWrapper>
|
||||
{isDeleteModalOpen && (
|
||||
<AlertModal
|
||||
|
@ -13,13 +13,6 @@ describe('<JobDetail />', () => {
|
||||
mountWithContexts(<JobDetail job={mockJobData} />);
|
||||
});
|
||||
|
||||
test('should display a Close button', () => {
|
||||
const wrapper = mountWithContexts(<JobDetail job={mockJobData} />);
|
||||
|
||||
expect(wrapper.find('Button[aria-label="close"]').length).toBe(1);
|
||||
wrapper.unmount();
|
||||
});
|
||||
|
||||
test('should display details', () => {
|
||||
const wrapper = mountWithContexts(<JobDetail job={mockJobData} />);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user