submit button 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);