#57 attempt to fix the flaky tests

This commit is contained in:
Fabio Formosa
2022-11-05 13:26:35 +01:00
parent f4dd8519a9
commit 9b32f5e598

View File

@@ -103,9 +103,10 @@ describe('SimpleTriggerConfig', () => {
expect(component.simpleTriggerReactiveForm.controls.triggerName.value).toEqual('test-trigger');
expect(submitButton.nativeElement.getAttribute('disabled')).toEqual('');
setMatSelectValueByIndex(componentDe, '#jobClass', 0);
expect(component.simpleTriggerReactiveForm.controls.jobClass.value).toBeTruthy();
console.log(component.simpleTriggerReactiveForm.controls);
expect(submitButton.nativeElement.getAttribute('disabled')).toEqual('');
setMatSelectValueByIndex(componentDe, '#misfireInstruction', 0);
fixture.detectChanges();
expect(component.simpleTriggerReactiveForm.controls.misfireInstruction.value).toEqual('MISFIRE_INSTRUCTION_FIRE_NOW');
expect(submitButton.nativeElement.getAttribute('disabled')).toEqual(null);
}