open-consul/ui-v2/app/components/consul-token-list/pageobject.js
Kenia 689d1375a3
ui: Add sorting to ACLs tokens with tests (#8359)
* Add sorting to ACLs tokens with tests

* Create token comparator and implement in template

* Upgrade @hashicorp/consul-api-double to 3.1.6

* Add navigation test to acls tokens
2020-07-29 09:41:40 -04:00

12 lines
571 B
JavaScript

export default (collection, clickable, attribute, text, actions) => () => {
return collection('.consul-token-list [data-test-list-row]', {
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']),
});
};