2018-10-19 15:17:02 +00:00
|
|
|
export default function(
|
|
|
|
visitable,
|
|
|
|
submitable,
|
|
|
|
deletable,
|
|
|
|
cancelable,
|
|
|
|
clickable,
|
2019-05-01 18:09:29 +00:00
|
|
|
policySelector,
|
|
|
|
roleSelector
|
2018-10-19 15:17:02 +00:00
|
|
|
) {
|
2019-05-01 18:09:29 +00:00
|
|
|
return {
|
|
|
|
visit: visitable(['/:dc/acls/tokens/:token', '/:dc/acls/tokens/create']),
|
|
|
|
...submitable({}, 'form > div'),
|
|
|
|
...cancelable({}, 'form > div'),
|
|
|
|
...deletable({}, 'form > div'),
|
|
|
|
use: clickable('[data-test-use]'),
|
|
|
|
confirmUse: clickable('button.type-delete'),
|
|
|
|
policies: policySelector(),
|
|
|
|
roles: roleSelector(),
|
|
|
|
};
|
2018-10-19 15:17:02 +00:00
|
|
|
}
|