diff --git a/awx/ui_next/src/screens/Template/WorkflowJobTemplateVisualizer/Modals/DeleteAllNodesModal.test.jsx b/awx/ui_next/src/screens/Template/WorkflowJobTemplateVisualizer/Modals/DeleteAllNodesModal.test.jsx
new file mode 100644
index 0000000000..5c28c06adb
--- /dev/null
+++ b/awx/ui_next/src/screens/Template/WorkflowJobTemplateVisualizer/Modals/DeleteAllNodesModal.test.jsx
@@ -0,0 +1,44 @@
+import React from 'react';
+import {
+ WorkflowDispatchContext,
+} from '@contexts/Workflow';
+import { mountWithContexts } from '@testUtils/enzymeHelpers';
+import DeleteAllNodesModal from './DeleteAllNodesModal';
+
+let wrapper;
+const dispatch = jest.fn();
+
+describe('DeleteAllNodesModal', () => {
+ beforeAll(() => {
+ wrapper = mountWithContexts(
+
+
+
+ );
+ });
+
+ afterAll(() => {
+ wrapper.unmount();
+ });
+
+ test('Delete All button dispatches as expected', () => {
+ wrapper.find('button#confirm-delete-all-nodes').simulate('click');
+ expect(dispatch).toHaveBeenCalledWith({
+ type: 'DELETE_ALL_NODES',
+ });
+ });
+
+ test('Cancel button dispatches as expected', () => {
+ wrapper.find('button#cancel-delete-all-nodes').simulate('click');
+ expect(dispatch).toHaveBeenCalledWith({
+ type: 'TOGGLE_DELETE_ALL_NODES_MODAL',
+ });
+ });
+
+ test('Close button dispatches as expected', () => {
+ wrapper.find('TimesIcon').simulate('click');
+ expect(dispatch).toHaveBeenCalledWith({
+ type: 'TOGGLE_DELETE_ALL_NODES_MODAL',
+ });
+ });
+});
diff --git a/awx/ui_next/src/screens/Template/WorkflowJobTemplateVisualizer/Modals/UnsavedChangesModal.jsx b/awx/ui_next/src/screens/Template/WorkflowJobTemplateVisualizer/Modals/UnsavedChangesModal.jsx
index 7a72289302..e594c7a570 100644
--- a/awx/ui_next/src/screens/Template/WorkflowJobTemplateVisualizer/Modals/UnsavedChangesModal.jsx
+++ b/awx/ui_next/src/screens/Template/WorkflowJobTemplateVisualizer/Modals/UnsavedChangesModal.jsx
@@ -15,6 +15,7 @@ function UnsavedChangesModal({ i18n, onSaveAndExit, onExit }) {
onClose={() => dispatch({ type: 'TOGGLE_UNSAVED_CHANGES_MODAL' })}
actions={[