Merge pull request #2787 from mabashian/fix-e2e-tests

Fixes e2e test failure checking copy wf warning title
This commit is contained in:
Michael Abashian
2018-08-07 16:53:55 -04:00
committed by GitHub
2 changed files with 4 additions and 3 deletions

View File

@@ -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,7 +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(promptHeader).text.contain(`${data.workflow.name.toUpperCase()}`);
templates.expect.element(promptWarning).text.contain('Unified Job Templates'); templates.expect.element(promptWarning).text.contain('Unified Job Templates');
templates.expect.element(promptWarning).text.contain(`${data.source.name}`); templates.expect.element(promptWarning).text.contain(`${data.source.name}`);