consul/ui/packages/consul-ui/app/components/role-selector/pageobject.js

15 lines
395 B
JavaScript
Raw Normal View History

export default (clickable, deletable, collection, alias, roleForm) => (scope = '#roles') => {
return {
scope: scope,
2021-03-09 09:30:01 +00:00
create: clickable('[data-test-role-create]'),
form: roleForm(),
roles: alias('selectedOptions'),
selectedOptions: collection(
'[data-test-roles] [data-test-tabular-row]',
deletable({
actions: clickable('label'),
})
),
};
};