consul/ui-v2/tests/pages/dc/services/show.js

14 lines
442 B
JavaScript
Raw Normal View History

2018-07-04 14:06:20 +00:00
export default function(visitable, attribute, collection, text, filter) {
return {
visit: visitable('/:dc/services/:service'),
externalSource: attribute('data-test-external-source', 'h1 span'),
instances: collection('#instances [data-test-tabular-row]', {
address: text('[data-test-address]'),
2018-07-04 14:06:20 +00:00
}),
dashboardAnchor: {
href: attribute('href', '[data-test-dashboard-anchor]'),
},
2018-07-04 14:06:20 +00:00
filter: filter,
};
}