2019-06-05 08:25:32 +00:00
|
|
|
export default function(
|
|
|
|
visitable,
|
|
|
|
deletable,
|
|
|
|
creatable,
|
|
|
|
clickable,
|
|
|
|
attribute,
|
|
|
|
collection,
|
|
|
|
text,
|
|
|
|
filter
|
|
|
|
) {
|
2018-10-19 15:17:02 +00:00
|
|
|
return creatable({
|
|
|
|
visit: visitable('/:dc/acls/policies'),
|
|
|
|
policies: collection(
|
|
|
|
'[data-test-tabular-row]',
|
|
|
|
deletable({
|
|
|
|
name: attribute('data-test-policy', '[data-test-policy]'),
|
2019-06-05 08:25:32 +00:00
|
|
|
description: text('[data-test-description]'),
|
2018-10-19 15:17:02 +00:00
|
|
|
policy: clickable('a'),
|
|
|
|
actions: clickable('label'),
|
|
|
|
})
|
|
|
|
),
|
|
|
|
filter: filter,
|
|
|
|
});
|
|
|
|
}
|