vault/ui/tests/pages/secrets/backends.js
Matthew Irish c722bc0e39
UI - make engine list more consistent with the auth method list (#4598)
* remove expanding behavior from engines list and add a configuration route

* use page header component, secret tab component for the template on the secret engine configuration route

* move abstraction to secret-list-header and remove secret-tabs

* add attrs to secret engine model and adjust mount controller code to support that

* fix top level nav so that we can use the back button properly

* fix tests
2018-05-23 11:25:52 -05:00

17 lines
492 B
JavaScript

import { create, visitable, collection, clickable, text } from 'ember-cli-page-object';
export default create({
visit: visitable('/vault/secrets'),
rows: collection({
itemScope: '[data-test-secret-backend-row]',
item: {
path: text('[data-test-secret-path]'),
menu: clickable('[data-test-popup-menu-trigger]'),
},
findByPath(path) {
return this.toArray().findBy('path', path + '/');
},
}),
configLink: clickable('[data-test-engine-config]'),
});