diff --git a/app/components/object-inspector/property.ts b/app/components/object-inspector/property.ts index 82181b625c..5009d7dd34 100644 --- a/app/components/object-inspector/property.ts +++ b/app/components/object-inspector/property.ts @@ -122,7 +122,7 @@ export default class ObjectInspectorProperty extends Component { + assert.strictEqual(typeof value, 'boolean', 'sent as boolean'); + + return { + type: 'objectInspector:updateProperty', + objectId, + property, + mixinIndex: 0, + value: { + inspect: false.toString(), + type: 'type-boolean', + isCalculated: false, + }, + }; + } + ); + + await click('[data-test-object-detail-name]'); + + assert.dom('[data-test-object-property-value]').hasText(true.toString()); + + await click('[data-test-object-property-value]'); + + let field = find('[data-test-object-property-value-txt]'); + assert.ok(field); + + await fillIn(field, 'false'); + await triggerKeyEvent(field, 'keyup', 13); + + assert.dom('[data-test-object-property-value]').hasText(false.toString()); + }); + test('Errors are correctly displayed', async function (assert) { assert.expect(8);