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

     1  /**
     2   * Copyright (c) HashiCorp, Inc.
     3   * SPDX-License-Identifier: MPL-2.0
     4   */
     5  
     6  import { create, isPresent, text, visitable } from 'ember-cli-page-object';
     7  
     8  import allocations from 'nomad-ui/tests/pages/components/allocations';
     9  
    10  export default create({
    11    visit: visitable('/csi/volumes/:id'),
    12  
    13    title: text('[data-test-title]'),
    14  
    15    health: text('[data-test-volume-health]'),
    16    provider: text('[data-test-volume-provider]'),
    17    externalId: text('[data-test-volume-external-id]'),
    18    hasNamespace: isPresent('[data-test-volume-namespace]'),
    19    namespace: text('[data-test-volume-namespace]'),
    20  
    21    ...allocations('[data-test-read-allocation]', 'readAllocations'),
    22    ...allocations('[data-test-write-allocation]', 'writeAllocations'),
    23  
    24    writeTableIsEmpty: isPresent('[data-test-empty-write-allocations]'),
    25    writeEmptyState: {
    26      headline: text('[data-test-empty-write-allocations-headline]'),
    27    },
    28  
    29    readTableIsEmpty: isPresent('[data-test-empty-read-allocations]'),
    30    readEmptyState: {
    31      headline: text('[data-test-empty-read-allocations-headline]'),
    32    },
    33  
    34    constraints: {
    35      accessMode: text('[data-test-access-mode]'),
    36      attachmentMode: text('[data-test-attachment-mode]'),
    37    },
    38  });