mirror of
https://github.com/status-im/consul.git
synced 2025-01-16 08:45:37 +00:00
4b2ff91b45
* Fix clickFirstAnchor bug * Create Proxy Info Tab for Instance Detail Page * Create tests for ProxyInfo and update other scenarios with Proxy data * ui: Refactors our app-view/%app-view component (#7752) Co-authored-by: John Cowen <johncowen@users.noreply.github.com>
23 lines
1005 B
JavaScript
23 lines
1005 B
JavaScript
export default function(visitable, attribute, collection, text, tabs) {
|
|
return {
|
|
visit: visitable('/:dc/services/:service/instances/:node/:id'),
|
|
externalSource: attribute('data-test-external-source', '[data-test-external-source]', {
|
|
scope: '.title',
|
|
}),
|
|
tabs: tabs('tab', ['health-checks', 'proxy-info', 'addresses', 'tags', 'metadata']),
|
|
serviceChecks: collection('[data-test-service-checks] li'),
|
|
nodeChecks: collection('[data-test-node-checks] li'),
|
|
upstreams: collection('[data-test-proxy-upstreams] > li', {
|
|
name: text('[data-test-destination-name]'),
|
|
}),
|
|
exposedPaths: collection('[data-test-proxy-exposed-paths] > tbody tr', {
|
|
combinedAddress: text('[data-test-combined-address]'),
|
|
}),
|
|
proxyChecks: collection('[data-test-proxy-checks] li'),
|
|
addresses: collection('#addresses [data-test-tabular-row]', {
|
|
address: text('[data-test-address]'),
|
|
}),
|
|
metadata: collection('#metadata [data-test-tabular-row]', {}),
|
|
};
|
|
}
|