mirror of https://github.com/status-im/consul.git
22 lines
686 B
JavaScript
22 lines
686 B
JavaScript
/**
|
|
* Copyright (c) HashiCorp, Inc.
|
|
* SPDX-License-Identifier: MPL-2.0
|
|
*/
|
|
|
|
export default function (visitable, submitable, deletable, cancelable, clickable, tokenList) {
|
|
return {
|
|
visit: visitable(['/:dc/acls/policies/:policy', '/:dc/acls/policies/create']),
|
|
...submitable({}, 'main form > div'),
|
|
...cancelable({}, 'main form > div'),
|
|
...deletable({}, 'main form > div'),
|
|
tokens: tokenList(),
|
|
validDatacenters: clickable('[name="policy[isScoped]"]'),
|
|
datacenter: clickable('[name="policy[Datacenters]"]'),
|
|
deleteModal: {
|
|
resetScope: true,
|
|
scope: '[data-test-delete-modal]:not([aria-hidden="true"])',
|
|
...deletable({}),
|
|
},
|
|
};
|
|
}
|