consul/ui/packages/consul-ui/app/components/token-list/pageobject.js

8 lines
255 B
JavaScript

export default (clickable, attribute, collection, deletable) => () => {
return collection('[data-test-tokens] [data-test-tabular-row]', {
id: attribute('data-test-token', '[data-test-token]'),
token: clickable('a'),
...deletable(),
});
};