I am working on a login form and if the user enters invalid credentials we want to mark both the email and password fields as invalid and display a message that says the log
For unit test:
spyOn(component.form, 'valid').and.returnValue(true);