diff --git a/awx/ui/client/features/templates/templatesList.controller.js b/awx/ui/client/features/templates/templatesList.controller.js index 1480a67bc5..26b477b23d 100644 --- a/awx/ui/client/features/templates/templatesList.controller.js +++ b/awx/ui/client/features/templates/templatesList.controller.js @@ -187,7 +187,7 @@ function ListTemplatesController( return strings.get('list.ADD_DD_WF_LABEL');; } }; - + function refreshTemplates() { Wait('start'); let path = GetBasePath('unified_job_templates'); @@ -270,7 +270,7 @@ function ListTemplatesController( actionText: strings.get('COPY'), body: buildWorkflowCopyPromptHTML(model.get('related.copy')), class: 'Modal-primaryButton', - hdr: strings.get('actions.COPY_WORKFLOW'), + hdr: strings.get('listActions.COPY', template.name), }); } else { Alert(strings.get('error.COPY'), strings.get('alert.NO_PERMISSION')); diff --git a/awx/ui/test/e2e/tests/test-templates-copy-delete-warnings.js b/awx/ui/test/e2e/tests/test-templates-copy-delete-warnings.js index b6544ff2da..45d8773e40 100644 --- a/awx/ui/test/e2e/tests/test-templates-copy-delete-warnings.js +++ b/awx/ui/test/e2e/tests/test-templates-copy-delete-warnings.js @@ -201,8 +201,8 @@ module.exports = { templates.expect.element(promptActionButton).enabled; templates.expect.element(promptCloseButton).enabled; - templates.expect.element(promptHeader).text.contain('COPY WORKFLOW'); - templates.expect.element(promptWarning).text.contain('Unified Job Templates'); + templates.expect.element(promptHeader).text.contain('COPY'); + templates.expect.element(promptHeader).text.contain(`${data.workflow.name.toUpperCase()}`); templates.expect.element(promptWarning).text.contain(`${data.source.name}`); templates.click(promptCancelButton);