Attempt to fix UI test with hg,svn replacement

This commit is contained in:
Alan Rominger 2020-12-01 14:25:11 -05:00
parent 44e6e9344b
commit 634df240ed
No known key found for this signature in database
GPG Key ID: C2D7EAAA12B63559

View File

@ -294,6 +294,10 @@ describe('<ProjectForm />', () => {
const scmTypeSelect = wrapper.find(
'FormGroup[label="Source Control Credential Type"] FormSelect'
);
await act(async () => {
scmTypeSelect.invoke('onChange')('svn', { target: { name: 'Subversion' } });
});
wrapper.update();
await act(async () => {
wrapper
.find('FormGroup[label="Source Control URL"] input')