mirror of https://github.com/hashicorp/consul
10 lines
454 B
JavaScript
10 lines
454 B
JavaScript
export default (collection, clickable, attribute, text, actions) => () => {
|
|
return collection('.consul-role-list li:not(:first-child)', {
|
|
name: attribute('data-test-role', '[data-test-role]'),
|
|
description: text('[data-test-description]'),
|
|
policy: text('[data-test-policy].policy', { multiple: true }),
|
|
serviceIdentity: text('[data-test-policy].policy-service-identity', { multiple: true }),
|
|
...actions(['edit', 'delete']),
|
|
});
|
|
};
|