mirror of
https://github.com/ansible/awx.git
synced 2026-03-20 18:37:39 -02:30
update tests to match new ids
This commit is contained in:
@@ -61,8 +61,8 @@ describe('FieldWithPrompt', () => {
|
|||||||
</Formik>
|
</Formik>
|
||||||
);
|
);
|
||||||
expect(wrapper.find('.pf-c-form__label-required')).toHaveLength(1);
|
expect(wrapper.find('.pf-c-form__label-required')).toHaveLength(1);
|
||||||
expect(wrapper.find('Popover[data-cy="job-template-limit"]').length).toBe(
|
expect(
|
||||||
1
|
wrapper.find('Popover[data-cy="job-template-limit-tooltip"]').length
|
||||||
);
|
).toBe(1);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -226,22 +226,14 @@ describe('<WorkflowJobTemplateForm/>', () => {
|
|||||||
|
|
||||||
test('test changes in FieldWithPrompt', async () => {
|
test('test changes in FieldWithPrompt', async () => {
|
||||||
await act(async () => {
|
await act(async () => {
|
||||||
wrapper.find('TextInputBase#text-wfjt-scm-branch').prop('onChange')(
|
wrapper.find('TextInputBase#wfjt-scm-branch').prop('onChange')('main');
|
||||||
'main'
|
wrapper.find('TextInputBase#wfjt-limit').prop('onChange')(1234567890);
|
||||||
);
|
|
||||||
wrapper.find('TextInputBase#text-wfjt-limit').prop('onChange')(
|
|
||||||
1234567890
|
|
||||||
);
|
|
||||||
});
|
});
|
||||||
|
|
||||||
wrapper.update();
|
wrapper.update();
|
||||||
|
|
||||||
expect(wrapper.find('input#text-wfjt-scm-branch').prop('value')).toEqual(
|
expect(wrapper.find('input#wfjt-scm-branch').prop('value')).toEqual('main');
|
||||||
'main'
|
expect(wrapper.find('input#wfjt-limit').prop('value')).toEqual(1234567890);
|
||||||
);
|
|
||||||
expect(wrapper.find('input#text-wfjt-limit').prop('value')).toEqual(
|
|
||||||
1234567890
|
|
||||||
);
|
|
||||||
});
|
});
|
||||||
|
|
||||||
test('webhooks and enable concurrent jobs functions properly', async () => {
|
test('webhooks and enable concurrent jobs functions properly', async () => {
|
||||||
|
|||||||
Reference in New Issue
Block a user