This commit is contained in:
apuschkin 2025-05-07 14:05:12 +02:00
parent 7a31b2b57c
commit 019cc939db
No known key found for this signature in database
GPG Key ID: DCFFF2B2EDEF9F73

View File

@ -1711,4 +1711,13 @@ describe('retrieve metadata on submit', () => {
expect(formComponent.disableSaveButton).toBeFalse();
});
it('should not show next task checkbox when conditions are not met', () => {
formComponent.showNextTaskCheckbox = false;
formComponent.showCompleteButton = false;
fixture.detectChanges();
const checkbox = fixture.debugElement.query(By.css('#adf-form-open-next-task'));
expect(checkbox).toBeNull();
});
});