open-consul/ui-v2/app/components/consul-nspace-list/pageobject.js

8 lines
265 B
JavaScript
Raw Normal View History

export default (collection, clickable, attribute, text, actions) => () => {
return collection('.consul-nspace-list li:not(:first-child)', {
nspace: clickable('a'),
description: text('[data-test-description]'),
...actions(['edit', 'delete']),
});
};