AAE-28806 Consume-dynamic-Drop-Down-Radio-Button-form-variables (#10442)

* [AAE-28806] Enable form variables in REST for RadioButton

* [AAE-28806] Enable form variables in REST for Dropdown widget

* [AAE-28806] removed debugging information

* [AAE-28806] Removed code repitition

* [AAE-28806] Made fields readonly

* [AAE-28806] fixed pipeline

---------

Co-authored-by: Andreas Philippi <90837097+andrphilippi@users.noreply.github.com>
This commit is contained in:
Michaela Kröber
2024-12-05 16:10:55 +01:00
committed by GitHub
parent bace3b9dcc
commit e6c2152add
7 changed files with 179 additions and 7 deletions

View File

@@ -555,11 +555,21 @@ describe('FormModel', () => {
expect(value).toBeUndefined();
});
it('should find a process variable by form variable name', () => {
it('should find a process variable by full form variable name', () => {
const value = form.getProcessVariableValue('variables.name1');
expect(value).toBe('hello');
});
it('should find a process variable by form variable name', () => {
const value = form.getProcessVariableValue('name1');
expect(value).toBe('hello');
});
it('should find default form variable by form variable name', () => {
const value = form.getProcessVariableValue('name2');
expect(value).toBe('29.09.2019T00:00:00.000Z');
});
it('should find a process variable by name', () => {
const value = form.getProcessVariableValue('booleanVar');
expect(value).toEqual(true);