2018-07-04 16:23:33 +00:00
|
|
|
export default function(visitable, deletable, creatable, clickable, attribute, collection, filter) {
|
|
|
|
return creatable({
|
2018-07-04 14:06:20 +00:00
|
|
|
visit: visitable('/:dc/intentions'),
|
|
|
|
intentions: collection(
|
|
|
|
'[data-test-tabular-row]',
|
|
|
|
deletable({
|
|
|
|
source: attribute('data-test-intention-source', '[data-test-intention-source]'),
|
|
|
|
destination: attribute(
|
|
|
|
'data-test-intention-destination',
|
|
|
|
'[data-test-intention-destination]'
|
|
|
|
),
|
|
|
|
action: attribute('data-test-intention-action', '[data-test-intention-action]'),
|
|
|
|
intention: clickable('a'),
|
|
|
|
actions: clickable('label'),
|
|
|
|
})
|
|
|
|
),
|
|
|
|
filter: filter,
|
2018-07-04 16:23:33 +00:00
|
|
|
});
|
2018-07-04 14:06:20 +00:00
|
|
|
}
|