2020-04-16 14:15:45 +00:00
|
|
|
export default function(
|
|
|
|
visitable,
|
|
|
|
clickable,
|
|
|
|
attribute,
|
|
|
|
collection,
|
|
|
|
text,
|
|
|
|
intentions,
|
|
|
|
filter,
|
|
|
|
tabs
|
|
|
|
) {
|
2018-07-04 14:06:20 +00:00
|
|
|
return {
|
|
|
|
visit: visitable('/:dc/services/:service'),
|
2018-09-12 19:23:39 +00:00
|
|
|
externalSource: attribute('data-test-external-source', 'h1 span'),
|
2019-05-02 13:35:42 +00:00
|
|
|
dashboardAnchor: {
|
|
|
|
href: attribute('href', '[data-test-dashboard-anchor]'),
|
|
|
|
},
|
2020-04-16 14:15:45 +00:00
|
|
|
tabs: tabs('tab', ['instances', 'intentions', 'routing', 'tags']),
|
2018-07-04 14:06:20 +00:00
|
|
|
filter: filter,
|
2020-04-16 14:15:45 +00:00
|
|
|
|
|
|
|
// TODO: These need to somehow move to subpages
|
|
|
|
instances: collection('#instances [data-test-tabular-row]', {
|
|
|
|
address: text('[data-test-address]'),
|
|
|
|
}),
|
|
|
|
intentions: intentions(),
|
2018-07-04 14:06:20 +00:00
|
|
|
};
|
|
|
|
}
|