github.com/outbrain/consul@v1.4.5/ui-v2/tests/pages/components/page.js (about)

     1  import { clickable } from 'ember-cli-page-object';
     2  export default {
     3    navigation: ['services', 'nodes', 'kvs', 'acls', 'intentions', 'docs', 'settings'].reduce(
     4      function(prev, item, i, arr) {
     5        const key = item;
     6        return Object.assign({}, prev, {
     7          [key]: clickable(`[data-test-main-nav-${item}] a`),
     8        });
     9      },
    10      {
    11        scope: '[data-test-navigation]',
    12      }
    13    ),
    14    footer: ['copyright', 'docs'].reduce(
    15      function(prev, item, i, arr) {
    16        const key = item;
    17        return Object.assign({}, prev, {
    18          [key]: clickable(`[data-test-main-nav-${item}`),
    19        });
    20      },
    21      {
    22        scope: '[data-test-footer]',
    23      }
    24    ),
    25  };