20 lines
689 B
JavaScript
20 lines
689 B
JavaScript
export default function(visitable, attribute, collection, text, intentions, filter, tabs) {
|
|
return {
|
|
visit: visitable('/:dc/services/:service'),
|
|
externalSource: attribute('data-test-external-source', '[data-test-external-source]', {
|
|
scope: '.title',
|
|
}),
|
|
dashboardAnchor: {
|
|
href: attribute('href', '[data-test-dashboard-anchor]'),
|
|
},
|
|
tabs: tabs('tab', ['instances', 'intentions', 'routing', 'tags']),
|
|
filter: filter,
|
|
|
|
// TODO: These need to somehow move to subpages
|
|
instances: collection('.consul-service-instance-list > ul > li:not(:first-child)', {
|
|
address: text('[data-test-address]'),
|
|
}),
|
|
intentions: intentions(),
|
|
};
|
|
}
|