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

     1  export default function(visitable, attribute, collection, text, filter) {
     2    return {
     3      visit: visitable('/:dc/services/:service'),
     4      externalSource: attribute('data-test-external-source', 'h1 span'),
     5      nodes: collection('[data-test-node]', {
     6        name: attribute('data-test-node'),
     7      }),
     8      healthy: collection('[data-test-healthy] [data-test-node]', {
     9        name: attribute('data-test-node'),
    10        address: text('header strong'),
    11        id: text('header em'),
    12      }),
    13      unhealthy: collection('[data-test-unhealthy] [data-test-node]', {
    14        name: attribute('data-test-node'),
    15        address: text('header strong'),
    16        id: text('header em'),
    17      }),
    18      filter: filter,
    19    };
    20  }