github.com/anth0d/nomad@v0.0.0-20221214183521-ae3a0a2cad06/ui/tests/pages/storage/volumes/list.js (about)

     1  import {
     2    clickable,
     3    collection,
     4    create,
     5    fillable,
     6    isPresent,
     7    text,
     8    visitable,
     9  } from 'ember-cli-page-object';
    10  
    11  import error from 'nomad-ui/tests/pages/components/error';
    12  import { singleFacet } from 'nomad-ui/tests/pages/components/facet';
    13  import pageSizeSelect from 'nomad-ui/tests/pages/components/page-size-select';
    14  
    15  export default create({
    16    pageSize: 25,
    17  
    18    visit: visitable('/csi/volumes'),
    19  
    20    search: fillable('[data-test-volumes-search] input'),
    21  
    22    volumes: collection('[data-test-volume-row]', {
    23      name: text('[data-test-volume-name]'),
    24      namespace: text('[data-test-volume-namespace]'),
    25      schedulable: text('[data-test-volume-schedulable]'),
    26      controllerHealth: text('[data-test-volume-controller-health]'),
    27      nodeHealth: text('[data-test-volume-node-health]'),
    28      provider: text('[data-test-volume-provider]'),
    29      allocations: text('[data-test-volume-allocations]'),
    30  
    31      hasNamespace: isPresent('[data-test-volume-namespace]'),
    32      clickRow: clickable(),
    33      clickName: clickable('[data-test-volume-name] a'),
    34    }),
    35  
    36    nextPage: clickable('[data-test-pager="next"]'),
    37    prevPage: clickable('[data-test-pager="prev"]'),
    38  
    39    isEmpty: isPresent('[data-test-empty-volumes-list]'),
    40    emptyState: {
    41      headline: text('[data-test-empty-volumes-list-headline]'),
    42    },
    43  
    44    error: error(),
    45    pageSizeSelect: pageSizeSelect(),
    46  
    47    facets: {
    48      namespace: singleFacet('[data-test-namespace-facet]'),
    49    },
    50  });