fixed tests w/ burnettk

This commit is contained in:
jasquat 2023-12-06 15:07:45 -05:00
parent d888c37b07
commit 1816c7f088
No known key found for this signature in database
1 changed files with 3 additions and 3 deletions

View File

@ -131,8 +131,8 @@ describe('Properties Panel for User Tasks', function () {
eventBus.fire('spiff.jsonSchema.update', { eventBus.fire('spiff.jsonSchema.update', {
value: 'new-schema.json', value: 'new-schema.json',
}); });
const jsonFile = getExtensionValue(userElement, 'formJsonSchemaFilename'); const jsonFile = getExtensionValue(userElement.businessObject, 'formJsonSchemaFilename');
const uiFile = getExtensionValue(userElement, 'formUiSchemaFilename'); const uiFile = getExtensionValue(userElement.businessObject, 'formUiSchemaFilename');
expect(jsonFile).to.equal('new-schema.json'); expect(jsonFile).to.equal('new-schema.json');
expect(uiFile).to.equal('new-uischema.json'); expect(uiFile).to.equal('new-uischema.json');
@ -155,7 +155,7 @@ describe('Properties Panel for User Tasks', function () {
const businessObject = getBusinessObject(userElement); const businessObject = getBusinessObject(userElement);
// The change is reflected in the business object // The change is reflected in the business object
let instructions = getExtensionValue( let instructions = getExtensionValue(
userElement, businessObject,
'spiffworkflow:InstructionsForEndUser' 'spiffworkflow:InstructionsForEndUser'
); );
expect(instructions).to.equal('#Hello!'); expect(instructions).to.equal('#Hello!');