2020-10-23 16:26:06 +00:00
|
|
|
export default function(
|
|
|
|
visitable,
|
|
|
|
clickable,
|
2021-03-09 09:30:01 +00:00
|
|
|
isVisible,
|
2020-10-23 16:26:06 +00:00
|
|
|
submitable,
|
|
|
|
deletable,
|
|
|
|
cancelable,
|
|
|
|
permissionsForm,
|
|
|
|
permissionsList
|
|
|
|
) {
|
|
|
|
return {
|
|
|
|
scope: 'main',
|
2022-01-07 19:09:40 +00:00
|
|
|
visit: visitable([
|
|
|
|
'/:dc/intentions/:intention',
|
|
|
|
'/:dc/services/:service/intentions/:intention',
|
|
|
|
'/:dc/services/:service/intentions/create',
|
|
|
|
'/:dc/intentions/create',
|
|
|
|
]),
|
2020-10-23 16:26:06 +00:00
|
|
|
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,
|
2021-03-09 09:30:01 +00:00
|
|
|
see: isVisible(),
|
2020-11-06 14:57:19 +00:00
|
|
|
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
|
|
|
}
|