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

13 lines
333 B
JavaScript

/**
* Copyright (c) HashiCorp, Inc.
* SPDX-License-Identifier: MPL-2.0
*/
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(),
});
};