github.com/hernad/nomad@v1.6.112/ui/tests/pages/storage/plugins/plugin/allocations.js (about)

     1  /**
     2   * Copyright (c) HashiCorp, Inc.
     3   * SPDX-License-Identifier: MPL-2.0
     4   */
     5  
     6  import {
     7    clickable,
     8    create,
     9    isPresent,
    10    text,
    11    visitable,
    12  } from 'ember-cli-page-object';
    13  
    14  import allocations from 'nomad-ui/tests/pages/components/allocations';
    15  import { multiFacet } from 'nomad-ui/tests/pages/components/facet';
    16  import pageSizeSelect from 'nomad-ui/tests/pages/components/page-size-select';
    17  
    18  export default create({
    19    pageSize: 25,
    20  
    21    visit: visitable('/csi/plugins/:id/allocations'),
    22  
    23    nextPage: clickable('[data-test-pager="next"]'),
    24    prevPage: clickable('[data-test-pager="prev"]'),
    25  
    26    isEmpty: isPresent('[data-test-empty-jobs-list]'),
    27    emptyState: {
    28      headline: text('[data-test-empty-jobs-list-headline]'),
    29    },
    30  
    31    ...allocations('[data-test-allocation]', 'allocations'),
    32  
    33    pageSizeSelect: pageSizeSelect(),
    34  
    35    facets: {
    36      health: multiFacet('[data-test-health-facet]'),
    37      type: multiFacet('[data-test-type-facet]'),
    38    },
    39  });