Skip to content

Commit 907894e

Browse files
committed
Fixing unit test
1 parent 004dd44 commit 907894e

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

src/app/process-page/form/scripts-select/scripts-select.component.spec.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,13 @@ describe('ScriptsSelectComponent', () => {
121121

122122
it('should not show a validation error if the form was submitted but the input was not left empty', fakeAsync(() => {
123123
(component as any)._selectedScript.id = 'testValue';
124+
fixture.detectChanges();
125+
tick();
126+
127+
const select = fixture.debugElement.query(By.css('#process-script'));
128+
select.triggerEventHandler('blur', null);
129+
fixture.detectChanges();
130+
124131
component.submitted = true;
125132
fixture.detectChanges();
126133
tick();

0 commit comments

Comments
 (0)