Skip to content

Commit 9ea4afc

Browse files
committed
#57 attempt to fix the flaky tests
1 parent 9b32f5e commit 9ea4afc

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

quartz-manager-frontend/src/app/components/simple-trigger-config/simple-trigger-config.component.spec.ts

+3-4
Original file line numberDiff line numberDiff line change
@@ -102,12 +102,11 @@ describe('SimpleTriggerConfig', () => {
102102
setInputValue(componentDe, '#triggerName', 'test-trigger');
103103
expect(component.simpleTriggerReactiveForm.controls.triggerName.value).toEqual('test-trigger');
104104
expect(submitButton.nativeElement.getAttribute('disabled')).toEqual('');
105-
setMatSelectValueByIndex(componentDe, '#jobClass', 0);
106-
expect(component.simpleTriggerReactiveForm.controls.jobClass.value).toBeTruthy();
107-
console.log(component.simpleTriggerReactiveForm.controls);
108-
expect(submitButton.nativeElement.getAttribute('disabled')).toEqual('');
109105
setMatSelectValueByIndex(componentDe, '#misfireInstruction', 0);
110106
expect(component.simpleTriggerReactiveForm.controls.misfireInstruction.value).toEqual('MISFIRE_INSTRUCTION_FIRE_NOW');
107+
setMatSelectValueByIndex(componentDe, '#jobClass', 0);
108+
expect(submitButton.nativeElement.getAttribute('disabled')).toEqual('');
109+
111110
expect(submitButton.nativeElement.getAttribute('disabled')).toEqual(null);
112111
}
113112

0 commit comments

Comments
 (0)