consul/ui-v2/app/components/consul-kv-list/pageobject.js

9 lines
278 B
JavaScript

export default (collection, clickable, attribute, deletable) => () => {
return collection('.consul-kv-list [data-test-tabular-row]', {
name: attribute('data-test-kv', '[data-test-kv]'),
kv: clickable('a'),
actions: clickable('label'),
...deletable(),
});
};