Skip to content

Commit

Permalink
fix(combo): edited combo component test
Browse files Browse the repository at this point in the history
  • Loading branch information
Zneeky committed Oct 18, 2024
1 parent 49dedf2 commit f1d7afa
Showing 1 changed file with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3603,16 +3603,12 @@ describe('igxCombo', () => {
expect(combo.valid).toEqual(IgxInputState.INITIAL);
expect(combo.comboInput.valid).toEqual(IgxInputState.INITIAL);
}));

fit('should mark the combo as touched and invalid when opened and the user clicks away', fakeAsync(() => {
it('should mark the combo as touched and invalid when opened and the user clicks away', fakeAsync(() => {
// Access the NgModel for the testCombo
const ngModel = fixture.debugElement.query(By.directive(NgModel)).injector.get(NgModel);

// Initially, the combo should not be touched
expect(combo.valid).toEqual(IgxInputState.INITIAL);
expect(combo.comboInput.valid).toEqual(IgxInputState.INITIAL);
expect(ngModel.touched).toBeFalse();

combo.open();
fixture.detectChanges();

Expand Down

0 comments on commit f1d7afa

Please sign in to comment.