mirror of
https://github.com/hashicorp/vault.git
synced 2025-08-18 12:37:02 +02:00
26 lines
755 B
JavaScript
26 lines
755 B
JavaScript
/**
|
|
* Copyright (c) HashiCorp, Inc.
|
|
* SPDX-License-Identifier: MPL-2.0
|
|
*/
|
|
|
|
import { text, create, collection, clickable, visitable } from 'ember-cli-page-object';
|
|
export default create({
|
|
visit: visitable('/vault/policies/:type'),
|
|
policies: collection('[data-test-policy-item]', {
|
|
name: text('[data-test-policy-name]'),
|
|
}),
|
|
row: collection('[data-test-policy-link]', {
|
|
name: text(),
|
|
menu: clickable('[data-test-popup-menu-trigger]'),
|
|
}),
|
|
findPolicyByName(name) {
|
|
return this.policies.filterBy('name', name)[0];
|
|
},
|
|
delete: clickable('[data-test-confirm-action-trigger]', {
|
|
testContainer: '#ember-testing',
|
|
}),
|
|
confirmDelete: clickable('[data-test-confirm-button]', {
|
|
testContainer: '#ember-testing',
|
|
}),
|
|
});
|