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

13 lines
334 B
JavaScript

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