github.com/Ilhicas/nomad@v1.0.4-0.20210304152020-e86851182bc3/ui/tests/pages/storage/volumes/detail.js (about)

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