1d26f056bc
* Updated code mirror component for consistency - Hide gutters, line number and selection while read only - Show toolbar with copy functionality for all instances * Moved toolbar and actions to json editor component * Updated form-field-from-model template * Added test for toolbar
9 lines
330 B
JavaScript
9 lines
330 B
JavaScript
import { isPresent, isVisible, text } from 'ember-cli-page-object';
|
|
|
|
export default {
|
|
title: text('[data-test-component=json-editor-title]'),
|
|
hasToolbar: isPresent('[data-test-component=json-editor-toolbar]'),
|
|
hasJSONEditor: isPresent('[data-test-component=json-editor]'),
|
|
canEdit: isVisible('div.CodeMirror-gutters'),
|
|
};
|