github.com/hernad/nomad@v1.6.112/ui/tests/pages/servers/detail.js (about)

     1  /**
     2   * Copyright (c) HashiCorp, Inc.
     3   * SPDX-License-Identifier: MPL-2.0
     4   */
     5  
     6  import {
     7    create,
     8    collection,
     9    clickable,
    10    isPresent,
    11    text,
    12    visitable,
    13  } from 'ember-cli-page-object';
    14  
    15  export default create({
    16    visit: visitable('/servers/:name'),
    17  
    18    title: text('[data-test-title]'),
    19    serverStatus: text('[data-test-status]'),
    20    address: text('[data-test-address]'),
    21    datacenter: text('[data-test-datacenter]'),
    22    hasLeaderBadge: isPresent('[data-test-leader-badge]'),
    23  
    24    tags: collection('[data-test-server-tag]', {
    25      name: text('td', { at: 0 }),
    26      value: text('td', { at: 1 }),
    27    }),
    28  
    29    error: {
    30      title: text('[data-test-error-title]'),
    31      message: text('[data-test-error-message]'),
    32      seekHelp: clickable('[data-test-error-message] a'),
    33    },
    34  });