open-consul/ui-v2/app/components/popover-select/pageobject.js

10 lines
235 B
JavaScript

export default (clickable, collection) => (scope = '.popover-select') => {
return {
scope: scope,
selected: clickable('button'),
options: collection('li[role="none"]', {
button: clickable('button'),
}),
};
};