2020-06-23 09:12:04 +00:00
|
|
|
export default (collection, clickable, attribute, text, actions) => () => {
|
2020-07-29 13:41:40 +00:00
|
|
|
return collection('.consul-token-list [data-test-list-row]', {
|
2020-06-17 09:25:54 +00:00
|
|
|
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'),
|
2020-06-23 09:12:04 +00:00
|
|
|
...actions(['edit', 'delete', 'use', 'logout', 'clone']),
|
2020-06-17 09:25:54 +00:00
|
|
|
});
|
|
|
|
};
|