2018-04-03 14:16:57 +00:00
|
|
|
import { Base } from '../show';
|
|
|
|
import { create, clickable, collection, isPresent } from 'ember-cli-page-object';
|
2018-11-09 20:00:53 +00:00
|
|
|
import { code } from 'vault/tests/pages/helpers/codemirror';
|
2018-04-03 14:16:57 +00:00
|
|
|
|
|
|
|
export default create({
|
|
|
|
...Base,
|
2018-09-25 16:28:26 +00:00
|
|
|
rows: collection('data-test-row-label'),
|
2018-11-09 20:00:53 +00:00
|
|
|
toggleJSON: clickable('[data-test-secret-json-toggle]'),
|
|
|
|
toggleIsPresent: isPresent('[data-test-secret-json-toggle]'),
|
|
|
|
edit: clickable('[data-test-secret-edit]'),
|
|
|
|
editIsPresent: isPresent('[data-test-secret-edit]'),
|
|
|
|
editor: {
|
|
|
|
content: code('[data-test-component="json-editor"]'),
|
|
|
|
},
|
2018-04-03 14:16:57 +00:00
|
|
|
});
|