How to write a test cases for ion-input with ng modal.
it(‘should bind the input to the correct property’, () => {
// first round of change detection
fixture.detectChanges();
// get ahold of the input
let input = de.query(By.css('#myInput'));
let inputElement = input.nativeElement;
//set input value
inputElement.value = 'test value';
inputElement.dispatchEvent(new Event('input'));
expect(component.kpi.kpiName).toBe('test value');
});
Is this the way.