mirror of https://github.com/status-im/consul.git
12 lines
571 B
JavaScript
12 lines
571 B
JavaScript
export default (collection, clickable, attribute, text, actions) => () => {
|
|
return collection('.consul-token-list li:not(:first-child)', {
|
|
id: attribute('data-test-token', '[data-test-token]'),
|
|
description: text('[data-test-description]'),
|
|
policy: text('[data-test-policy].policy', { multiple: true }),
|
|
role: text('[data-test-policy].role', { multiple: true }),
|
|
serviceIdentity: text('[data-test-policy].policy-service-identity', { multiple: true }),
|
|
token: clickable('a'),
|
|
...actions(['edit', 'delete', 'use', 'logout', 'clone']),
|
|
});
|
|
};
|