ea5d2ef8b6
* Adds conditional in route to not make discovery-chain request if service kind is equal to `connect-proxy` or `mesh-gateway` * Adds conditional in template to not show Routing tab if `chain` returns as null * Creates a new acceptance test to test the Routing tab not being displayed for a service proxy * Adds `tabs` to the services/show page object
15 lines
517 B
JavaScript
15 lines
517 B
JavaScript
export default function(visitable, attribute, collection, text, filter, radiogroup) {
|
|
return {
|
|
visit: visitable('/:dc/services/:service'),
|
|
externalSource: attribute('data-test-external-source', 'h1 span'),
|
|
instances: collection('#instances [data-test-tabular-row]', {
|
|
address: text('[data-test-address]'),
|
|
}),
|
|
dashboardAnchor: {
|
|
href: attribute('href', '[data-test-dashboard-anchor]'),
|
|
},
|
|
tabs: radiogroup('tab', ['instances', 'routing', 'tags']),
|
|
filter: filter,
|
|
};
|
|
}
|