2023-03-14 13:18:55 +00:00
|
|
|
/**
|
|
|
|
* Copyright (c) HashiCorp, Inc.
|
2023-08-11 13:12:13 +00:00
|
|
|
* SPDX-License-Identifier: BUSL-1.1
|
2023-03-14 13:18:55 +00:00
|
|
|
*/
|
|
|
|
|
2022-09-15 08:43:17 +00:00
|
|
|
export default function (visitable, deletable, creatable, clickable, attribute, collection) {
|
2018-07-04 16:23:33 +00:00
|
|
|
return creatable({
|
2018-07-04 14:06:20 +00:00
|
|
|
visit: visitable('/:dc/acls'),
|
|
|
|
acls: collection(
|
|
|
|
'[data-test-tabular-row]',
|
|
|
|
deletable({
|
|
|
|
name: attribute('data-test-acl', '[data-test-acl]'),
|
|
|
|
acl: clickable('a'),
|
|
|
|
actions: clickable('label'),
|
2018-07-04 15:37:41 +00:00
|
|
|
use: clickable('[data-test-use]'),
|
2020-01-22 12:08:29 +00:00
|
|
|
confirmUse: clickable('[data-test-confirm-use]'),
|
2018-07-04 14:06:20 +00:00
|
|
|
})
|
|
|
|
),
|
2018-07-04 16:23:33 +00:00
|
|
|
});
|
2018-07-04 14:06:20 +00:00
|
|
|
}
|