compontn form submition testing angular code example
Example: anguler test submit form
fixture.debugElement
.query(By.css('form'))
.triggerEventHandler('ngSubmit', null);
fixture.debugElement
.query(By.css('form'))
.triggerEventHandler('ngSubmit', null);