2020-04-08 09:56:36 +00:00
|
|
|
export default function(visitable, attribute, collection, text, tabs) {
|
2019-03-07 10:51:39 +00:00
|
|
|
return {
|
2020-04-08 09:56:36 +00:00
|
|
|
visit: visitable('/:dc/services/:service/instances/:node/:id'),
|
2020-04-22 14:40:59 +00:00
|
|
|
externalSource: attribute('data-test-external-source', '[data-test-external-source]', {
|
2020-05-07 13:57:15 +00:00
|
|
|
scope: '.title',
|
2020-04-22 14:40:59 +00:00
|
|
|
}),
|
2020-11-10 16:31:47 +00:00
|
|
|
tabs: tabs('tab', ['health-checks', 'upstreams', 'exposed-paths', 'addresses', 'tags-&-meta']),
|
2020-10-02 08:09:05 +00:00
|
|
|
checks: collection('[data-test-checks] li'),
|
2020-05-07 13:57:15 +00:00
|
|
|
upstreams: collection('[data-test-proxy-upstreams] > li', {
|
2019-03-07 10:51:39 +00:00
|
|
|
name: text('[data-test-destination-name]'),
|
|
|
|
}),
|
2020-05-07 13:57:15 +00:00
|
|
|
exposedPaths: collection('[data-test-proxy-exposed-paths] > tbody tr', {
|
2019-11-25 18:45:10 +00:00
|
|
|
combinedAddress: text('[data-test-combined-address]'),
|
|
|
|
}),
|
2020-05-07 13:57:15 +00:00
|
|
|
proxyChecks: collection('[data-test-proxy-checks] li'),
|
2019-07-05 08:07:25 +00:00
|
|
|
addresses: collection('#addresses [data-test-tabular-row]', {
|
|
|
|
address: text('[data-test-address]'),
|
|
|
|
}),
|
2020-05-26 15:52:32 +00:00
|
|
|
metadata: collection('.metadata [data-test-tabular-row]', {}),
|
2019-03-07 10:51:39 +00:00
|
|
|
};
|
|
|
|
}
|