2020-02-03 15:09:15 +00:00
|
|
|
export default function(visitable, attribute, collection, text, filter, radiogroup) {
|
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-02-21 13:10:53 +00:00
|
|
|
instances: collection('#instances [data-test-tabular-row]', {
|
|
|
|
address: text('[data-test-address]'),
|
2018-07-04 14:06:20 +00:00
|
|
|
}),
|
2019-05-02 13:35:42 +00:00
|
|
|
dashboardAnchor: {
|
|
|
|
href: attribute('href', '[data-test-dashboard-anchor]'),
|
|
|
|
},
|
2020-02-03 15:09:15 +00:00
|
|
|
tabs: radiogroup('tab', ['instances', 'routing', 'tags']),
|
2018-07-04 14:06:20 +00:00
|
|
|
filter: filter,
|
|
|
|
};
|
|
|
|
}
|