consul/ui/packages/consul-ui/tests/pages/dc/intentions/edit.js

40 lines
839 B
JavaScript
Raw Normal View History

export default function(
visitable,
clickable,
2021-03-09 09:30:01 +00:00
isVisible,
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(),
},
warning: {
scope: '[data-test-action-warning]',
resetScope: true,
2021-03-09 09:30:01 +00:00
see: isVisible(),
confirm: {
scope: '[data-test-action-warning-confirm]',
click: clickable(),
},
cancel: {
scope: '[data-test-action-warning-cancel]',
click: clickable(),
},
},
...submitable(),
...cancelable(),
...deletable(),
};
2018-07-04 14:06:20 +00:00
}