open-consul/ui-v2/app/components/consul-policy-list/pageobject.js
Kenia de95a6a325
ui: Add sorting to Policies (#8373)
* Add sorting to ACLs policies with comparator

* Add acls/roles sorting test

* Add navigation test for acls/policies

* Update onchange value for sorting policies
2020-07-29 14:36:09 -04:00

9 lines
328 B
JavaScript

export default (collection, clickable, attribute, text, actions) => () => {
return collection('.consul-policy-list [data-test-list-row]', {
name: attribute('data-test-policy', '[data-test-policy]'),
description: text('[data-test-description]'),
policy: clickable('a'),
...actions(['edit', 'delete']),
});
};