You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
consul/ui-v2/tests/pages/components/role-selector.js

15 lines
395 B

export default (clickable, deletable, collection, alias, roleForm) => (scope = '#roles') => {
return {
scope: scope,
create: clickable('[for="new-role-toggle"]'),
form: roleForm(),
roles: alias('selectedOptions'),
selectedOptions: collection(
'[data-test-roles] [data-test-tabular-row]',
deletable({
actions: clickable('label'),
})
),
};
};