1
0
mirror of https://github.com/ansible/awx.git synced 2024-10-31 15:21:13 +03:00

Update "Enable Webhooks" option in WFJT

closes: https://github.com/ansible/awx/issues/6163
This commit is contained in:
nixocio 2020-04-06 16:41:19 -04:00
parent 592043fa70
commit 85a1c88653
3 changed files with 6 additions and 6 deletions

View File

@ -58,7 +58,7 @@ function WorkflowJobTemplateDetail({ template, i18n, webhook_key }) {
)}
{template.webhook_service && (
<TextListItem component={TextListItemVariants.li}>
{i18n._(t`- Enable Webhook`)}
{i18n._(t`- Enable Webhooks`)}
</TextListItem>
)}
</TextList>

View File

@ -338,14 +338,14 @@ function WorkflowJobTemplateForm({
<Field id="wfjt-webhooks" name="hasWebhooks">
{({ form }) => (
<Checkbox
aria-label={i18n._(t`Enable Webhook`)}
aria-label={i18n._(t`Enable Webhooks`)}
label={
<span>
{i18n._(t`Enable Webhook`)}
{i18n._(t`Enable Webhooks`)}
&nbsp;
<FieldTooltip
content={i18n._(
t`Enable webhook for this workflow job template.`
t`Enable webhooks for this workflow job template.`
)}
/>
</span>

View File

@ -171,7 +171,7 @@ describe('<WorkflowJobTemplateForm/>', () => {
test('webhooks and enable concurrent jobs functions properly', async () => {
act(() => {
wrapper.find('Checkbox[aria-label="Enable Webhook"]').invoke('onChange')(
wrapper.find('Checkbox[aria-label="Enable Webhooks"]').invoke('onChange')(
true,
{
currentTarget: { value: true, type: 'change', checked: true },
@ -180,7 +180,7 @@ describe('<WorkflowJobTemplateForm/>', () => {
});
wrapper.update();
expect(
wrapper.find('Checkbox[aria-label="Enable Webhook"]').prop('isChecked')
wrapper.find('Checkbox[aria-label="Enable Webhooks"]').prop('isChecked')
).toBe(true);
expect(