mirror of
https://github.com/hashicorp/vault.git
synced 2025-11-11 13:51:36 +01:00
* add router service polyfill * add refresh command * move async code into ember-concurrency task and implement refresh that way * use ember-concurrency derived state to show a loading spinner when the task is running * scroll after appending to log too
20 lines
639 B
JavaScript
20 lines
639 B
JavaScript
import { create, visitable, collection, clickable, text } from 'ember-cli-page-object';
|
|
import uiPanel from 'vault/tests/pages/components/console/ui-panel';
|
|
|
|
export default create({
|
|
console: uiPanel,
|
|
consoleToggle: clickable('[data-test-console-toggle]'),
|
|
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]'),
|
|
});
|