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