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/policy-selector.js

21 lines
510 B

export default (clickable, deletable, collection, alias, policyForm) => (
scope = '#policies',
createSelector = '[for="new-policy-toggle"]'
) => {
return {
scope: scope,
create: clickable(createSelector),
form: policyForm('#new-policy-toggle + div'),
policies: alias('selectedOptions'),
selectedOptions: collection(
'[data-test-policies] [data-test-tabular-row]',
deletable(
{
expand: clickable('label'),
},
'+ tr'
)
),
};
};