open-vault/ui/tests/pages/secrets/backend/kv/show.js

16 lines
557 B
JavaScript
Raw Normal View History

2018-04-03 14:16:57 +00:00
import { Base } from '../show';
import { create, clickable, collection, isPresent } from 'ember-cli-page-object';
import { code } from 'vault/tests/pages/helpers/codemirror';
2018-04-03 14:16:57 +00:00
export default create({
...Base,
rows: collection('data-test-row-label'),
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
});