mirror of
https://github.com/ansible/awx.git
synced 2026-03-26 21:35:01 -02:30
Fixes e2e test failure checking copy wf warning title
This commit is contained in:
@@ -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'));
|
||||||
|
|||||||
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user