2020-10-23 16:26:06 +00:00
|
|
|
export default function(
|
|
|
|
visitable,
|
|
|
|
clickable,
|
2020-11-06 14:57:19 +00:00
|
|
|
isPresent,
|
2020-10-23 16:26:06 +00:00
|
|
|
submitable,
|
|
|
|
deletable,
|
|
|
|
cancelable,
|
|
|
|
permissionsForm,
|
|
|
|
permissionsList
|
|
|
|
) {
|
|
|
|
return {
|
|
|
|
scope: 'main',
|
|
|
|
visit: visitable(['/:dc/intentions/:intention', '/:dc/intentions/create']),
|
|
|
|
permissions: {
|
|
|
|
create: {
|
|
|
|
scope: '[data-test-create-permission]',
|
|
|
|
click: clickable(),
|
|
|
|
},
|
|
|
|
form: permissionsForm(),
|
|
|
|
list: permissionsList(),
|
|
|
|
},
|
2020-11-06 14:57:19 +00:00
|
|
|
warning: {
|
|
|
|
scope: '[data-test-action-warning]',
|
|
|
|
resetScope: true,
|
|
|
|
present: isPresent(),
|
|
|
|
confirm: {
|
|
|
|
scope: '[data-test-action-warning-confirm]',
|
|
|
|
click: clickable(),
|
|
|
|
},
|
|
|
|
cancel: {
|
|
|
|
scope: '[data-test-action-warning-cancel]',
|
|
|
|
click: clickable(),
|
|
|
|
},
|
|
|
|
},
|
2020-10-23 16:26:06 +00:00
|
|
|
...submitable(),
|
|
|
|
...cancelable(),
|
|
|
|
...deletable(),
|
|
|
|
};
|
2018-07-04 14:06:20 +00:00
|
|
|
}
|