diff --git a/x-pack/solutions/security/plugins/security_solution/public/management/pages/trusted_apps/view/components/form.test.tsx b/x-pack/solutions/security/plugins/security_solution/public/management/pages/trusted_apps/view/components/form.test.tsx index 09bb76146fd0a..ffc00a381daab 100644 --- a/x-pack/solutions/security/plugins/security_solution/public/management/pages/trusted_apps/view/components/form.test.tsx +++ b/x-pack/solutions/security/plugins/security_solution/public/management/pages/trusted_apps/view/components/form.test.tsx @@ -718,14 +718,10 @@ describe('Trusted apps form', () => { expect(renderResult.getByText(INPUT_ERRORS.name)); }); - it('should validate invalid Hash value', async () => { - const valueField = getConditionValue(getCondition()); - await act(async () => { - await userEvent.clear(valueField); - await userEvent.type(valueField, 'someHASH'); - fireEvent.blur(valueField); - }); - rerenderWithLatestProps(); + it('should validate invalid Hash value', () => { + setTextFieldValue(getConditionValue(getCondition()), 'someHASH'); + formProps.item = (formProps.onChange as jest.Mock).mock.calls.at(-2)[0].item; + rerender(); expect(renderResult.getByText(INPUT_ERRORS.invalidHash(0))); });