open-consul/ui-v2/tests/pages/dc/acls/policies/index.js

25 lines
501 B
JavaScript
Raw Normal View History

export default function(
visitable,
deletable,
creatable,
clickable,
attribute,
collection,
text,
filter
) {
return creatable({
visit: visitable('/:dc/acls/policies'),
policies: collection(
'[data-test-tabular-row]',
deletable({
name: attribute('data-test-policy', '[data-test-policy]'),
description: text('[data-test-description]'),
policy: clickable('a'),
actions: clickable('label'),
})
),
filter: filter,
});
}