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:
parent
592043fa70
commit
85a1c88653
@ -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>
|
||||
|
@ -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`)}
|
||||
|
||||
<FieldTooltip
|
||||
content={i18n._(
|
||||
t`Enable webhook for this workflow job template.`
|
||||
t`Enable webhooks for this workflow job template.`
|
||||
)}
|
||||
/>
|
||||
</span>
|
||||
|
@ -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(
|
||||
|
Loading…
Reference in New Issue
Block a user