github.com/sl1pm4t/consul@v1.4.5-0.20190325224627-74c31c540f9c/ui-v2/tests/pages/dc/nodes/show.js (about)

     1  export default function(visitable, deletable, clickable, attribute, collection, radiogroup) {
     2    return {
     3      visit: visitable('/:dc/nodes/:node'),
     4      tabs: radiogroup('tab', ['health-checks', 'services', 'round-trip-time', 'lock-sessions']),
     5      healthchecks: collection('[data-test-node-healthcheck]', {
     6        name: attribute('data-test-node-healthcheck'),
     7      }),
     8      services: collection('#services [data-test-tabular-row]', {
     9        id: attribute('data-test-service-id', '[data-test-service-id]'),
    10        name: attribute('data-test-service-name', '[data-test-service-name]'),
    11        port: attribute('data-test-service-port', '.port'),
    12        externalSource: attribute('data-test-external-source', 'a span'),
    13      }),
    14      sessions: collection(
    15        '#lock-sessions [data-test-tabular-row]',
    16        deletable({
    17          TTL: attribute('data-test-session-ttl', '[data-test-session-ttl]'),
    18        })
    19      ),
    20    };
    21  }