Skip to content

Commit 26fa77a

Browse files
committed
updating tests
1 parent 8ec02e4 commit 26fa77a

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

ui/tests/integration/components/variable-form-test.js

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -509,10 +509,19 @@ module('Integration | Component | variable-form', function (hooks) {
509509
await render(
510510
hbs`<VariableForm @model={{this.mockedModel}} @view={{this.view}} />`
511511
);
512+
await waitFor('.cm-editor');
513+
514+
const editorElement = document.querySelector('[data-test-json-editor]');
515+
const codeMirrorInstance = editorElement.editor;
516+
517+
codeMirrorInstance.dispatch({
518+
changes: {
519+
from: 0,
520+
to: codeMirrorInstance.state.doc.length,
521+
insert: JSON.stringify({ golden: 'gate' }, null, 2),
522+
},
523+
});
512524

513-
codeFillable('[data-test-json-editor]').get()(
514-
JSON.stringify({ golden: 'gate' }, null, 2)
515-
);
516525
this.set('view', 'table');
517526
assert.equal(
518527
find(`.key-value:last-of-type [data-test-var-key]`).value,

0 commit comments

Comments
 (0)