diff --git a/awx/ui_next/src/screens/Organization/OrganizationList/OrganizationList.jsx b/awx/ui_next/src/screens/Organization/OrganizationList/OrganizationList.jsx
index f30d0cfd8c..02b176ffda 100644
--- a/awx/ui_next/src/screens/Organization/OrganizationList/OrganizationList.jsx
+++ b/awx/ui_next/src/screens/Organization/OrganizationList/OrganizationList.jsx
@@ -88,6 +88,7 @@ function OrganizationsList({ i18n }) {
const handleOrgDelete = async () => {
await deleteOrganizations();
await adjustPagination();
+ setSelected([]);
};
const adjustPagination = () => {
diff --git a/awx/ui_next/src/screens/Template/TemplateList/TemplateList.jsx b/awx/ui_next/src/screens/Template/TemplateList/TemplateList.jsx
index ec46a1e779..416df5d8be 100644
--- a/awx/ui_next/src/screens/Template/TemplateList/TemplateList.jsx
+++ b/awx/ui_next/src/screens/Template/TemplateList/TemplateList.jsx
@@ -252,5 +252,4 @@ function TemplateList({ i18n }) {
);
}
-export { TemplateList as _TemplatesList };
export default withI18n()(TemplateList);
diff --git a/awx/ui_next/src/screens/Template/TemplateList/TemplateList.test.jsx b/awx/ui_next/src/screens/Template/TemplateList/TemplateList.test.jsx
index ab57868282..d80a244b27 100644
--- a/awx/ui_next/src/screens/Template/TemplateList/TemplateList.test.jsx
+++ b/awx/ui_next/src/screens/Template/TemplateList/TemplateList.test.jsx
@@ -9,7 +9,7 @@ import {
} from '@api';
import { mountWithContexts, waitForElement } from '@testUtils/enzymeHelpers';
-import TemplatesList from './TemplateList';
+import TemplateList from './TemplateList';
jest.mock('@api');
@@ -94,7 +94,7 @@ describe('', () => {
test('initially renders successfully', async () => {
await act(async () => {
mountWithContexts(
-
@@ -105,7 +105,7 @@ describe('', () => {
test('Templates are retrieved from the api and the components finishes loading', async () => {
let wrapper;
await act(async () => {
- wrapper = mountWithContexts();
+ wrapper = mountWithContexts();
});
expect(UnifiedJobTemplatesAPI.read).toBeCalled();
await act(async () => {
@@ -115,7 +115,7 @@ describe('', () => {
});
test('handleSelect is called when a template list item is selected', async () => {
- const wrapper = mountWithContexts();
+ const wrapper = mountWithContexts();
await act(async () => {
await waitForElement(wrapper, 'ContentLoading', el => el.length === 0);
});
@@ -143,7 +143,7 @@ describe('', () => {
});
test('handleSelectAll is called when a template list item is selected', async () => {
- const wrapper = mountWithContexts();
+ const wrapper = mountWithContexts();
await act(async () => {
await waitForElement(wrapper, 'ContentLoading', el => el.length === 0);
});
@@ -158,7 +158,7 @@ describe('', () => {
});
test('delete button is disabled if user does not have delete capabilities on a selected template', async () => {
- const wrapper = mountWithContexts();
+ const wrapper = mountWithContexts();
await act(async () => {
await waitForElement(wrapper, 'ContentLoading', el => el.length === 0);
});
@@ -217,7 +217,7 @@ describe('', () => {
});
test('api is called to delete templates for each selected template.', async () => {
- const wrapper = mountWithContexts();
+ const wrapper = mountWithContexts();
await act(async () => {
await waitForElement(wrapper, 'ContentLoading', el => el.length === 0);
});
@@ -277,7 +277,7 @@ describe('', () => {
},
})
);
- const wrapper = mountWithContexts();
+ const wrapper = mountWithContexts();
await act(async () => {
await waitForElement(wrapper, 'ContentLoading', el => el.length === 0);
});
@@ -315,7 +315,7 @@ describe('', () => {
const wrapper = mountWithContexts(
}
+ component={() => }
/>,
{
context: {
diff --git a/awx/ui_next/src/screens/Template/TemplateList/TemplateListItem.test.jsx b/awx/ui_next/src/screens/Template/TemplateList/TemplateListItem.test.jsx
index 9392039508..8fa48e08d6 100644
--- a/awx/ui_next/src/screens/Template/TemplateList/TemplateListItem.test.jsx
+++ b/awx/ui_next/src/screens/Template/TemplateList/TemplateListItem.test.jsx
@@ -2,12 +2,12 @@ import React from 'react';
import { mountWithContexts } from '@testUtils/enzymeHelpers';
-import TemplatesListItem from './TemplateListItem';
+import TemplateListItem from './TemplateListItem';
describe('', () => {
test('launch button shown to users with start capabilities', () => {
const wrapper = mountWithContexts(
- ', () => {
});
test('launch button hidden from users without start capabilities', () => {
const wrapper = mountWithContexts(
- ', () => {
});
test('edit button shown to users with edit capabilities', () => {
const wrapper = mountWithContexts(
- ', () => {
});
test('edit button hidden from users without edit capabilities', () => {
const wrapper = mountWithContexts(
- ', () => {
});
test('missing resource icon is shown.', () => {
const wrapper = mountWithContexts(
- ', () => {
});
test('missing resource icon is not shown when there is a project and an inventory.', () => {
const wrapper = mountWithContexts(
- ', () => {
});
test('missing resource icon is not shown when inventory is prompt_on_launch, and a project', () => {
const wrapper = mountWithContexts(
- ', () => {
});
test('missing resource icon is not shown type is workflow_job_template', () => {
const wrapper = mountWithContexts(
-