Fixes e2e test failure checking copy wf warning title

This commit is contained in:
mabashian
2018-08-07 15:59:46 -04:00
parent d1f37ad1af
commit 7f6ab4f60b
2 changed files with 4 additions and 4 deletions

View File

@@ -187,7 +187,7 @@ function ListTemplatesController(
return strings.get('list.ADD_DD_WF_LABEL');; return strings.get('list.ADD_DD_WF_LABEL');;
} }
}; };
function refreshTemplates() { function refreshTemplates() {
Wait('start'); Wait('start');
let path = GetBasePath('unified_job_templates'); let path = GetBasePath('unified_job_templates');
@@ -270,7 +270,7 @@ function ListTemplatesController(
actionText: strings.get('COPY'), actionText: strings.get('COPY'),
body: buildWorkflowCopyPromptHTML(model.get('related.copy')), body: buildWorkflowCopyPromptHTML(model.get('related.copy')),
class: 'Modal-primaryButton', class: 'Modal-primaryButton',
hdr: strings.get('actions.COPY_WORKFLOW'), hdr: strings.get('listActions.COPY', template.name),
}); });
} else { } else {
Alert(strings.get('error.COPY'), strings.get('alert.NO_PERMISSION')); Alert(strings.get('error.COPY'), strings.get('alert.NO_PERMISSION'));

View File

@@ -201,8 +201,8 @@ module.exports = {
templates.expect.element(promptActionButton).enabled; templates.expect.element(promptActionButton).enabled;
templates.expect.element(promptCloseButton).enabled; templates.expect.element(promptCloseButton).enabled;
templates.expect.element(promptHeader).text.contain('COPY WORKFLOW'); templates.expect.element(promptHeader).text.contain('COPY');
templates.expect.element(promptWarning).text.contain('Unified Job Templates'); templates.expect.element(promptHeader).text.contain(`${data.workflow.name.toUpperCase()}`);
templates.expect.element(promptWarning).text.contain(`${data.source.name}`); templates.expect.element(promptWarning).text.contain(`${data.source.name}`);
templates.click(promptCancelButton); templates.click(promptCancelButton);