open-consul/ui-v2/app/components/consul-role-list/pageobject.js
Kenia b6cf6ab6cd
ui: Add sorting to Roles (#8369)
* Add sorting to ACLs roles with comparator

* Add acls/roles sorting test

* Add navigation feature test to roles

* Update onchange value target for sorting roles
2020-07-29 10:55:38 -04:00

11 lines
480 B
JavaScript

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