From d389362ca313dcf5e61f012b9d44f175deb35930 Mon Sep 17 00:00:00 2001 From: Alex Corey Date: Tue, 15 Jun 2021 14:16:23 -0400 Subject: [PATCH] renders ad hoc command fields in job detail view --- .../src/screens/Job/JobDetail/JobDetail.js | 4 ++- .../screens/Job/JobDetail/JobDetail.test.js | 32 +++++++++++++++++++ 2 files changed, 35 insertions(+), 1 deletion(-) diff --git a/awx/ui_next/src/screens/Job/JobDetail/JobDetail.js b/awx/ui_next/src/screens/Job/JobDetail/JobDetail.js index 30d6da5512..62c88047e3 100644 --- a/awx/ui_next/src/screens/Job/JobDetail/JobDetail.js +++ b/awx/ui_next/src/screens/Job/JobDetail/JobDetail.js @@ -76,7 +76,7 @@ function JobDetail({ job }) { project_update: t`Source Control Update`, inventory_update: t`Inventory Sync`, job: job.job_type === 'check' ? t`Playbook Check` : t`Playbook Run`, - ad_hoc_command: t`Command`, + ad_hoc_command: t`Run Command`, system_job: t`Management Job`, workflow_job: t`Workflow Job`, }; @@ -337,6 +337,8 @@ function JobDetail({ job }) { } /> )} + + ', () => { ).toHaveLength(1); }); + test('should display module name and module arguments', () => { + wrapper = mountWithContexts( + + ); + assertDetail('Module Name', 'command'); + assertDetail('Module Arguments', 'echo hello_world'); + assertDetail('Job Type', 'Run Command'); + }); + test('should show schedule that launched workflow job', async () => { wrapper = mountWithContexts(