#57 attempt to fix the flaky tests

This commit is contained in:
Fabio Formosa
2022-11-05 13:19:45 +01:00
parent 1b1be180c6
commit f4dd8519a9

View File

@@ -105,6 +105,7 @@ describe('SimpleTriggerConfig', () => {
setMatSelectValueByIndex(componentDe, '#jobClass', 0);
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);
}