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

     1  /**
     2   * Copyright (c) HashiCorp, Inc.
     3   * SPDX-License-Identifier: MPL-2.0
     4   */
     5  
     6  import {
     7    clickable,
     8    collection,
     9    create,
    10    fillable,
    11    isPresent,
    12    text,
    13    visitable,
    14  } from 'ember-cli-page-object';
    15  
    16  import error from 'nomad-ui/tests/pages/components/error';
    17  import pageSizeSelect from 'nomad-ui/tests/pages/components/page-size-select';
    18  
    19  export default create({
    20    pageSize: 25,
    21  
    22    visit: visitable('/csi/plugins'),
    23  
    24    search: fillable('[data-test-plugins-search] input'),
    25  
    26    plugins: collection('[data-test-plugin-row]', {
    27      id: text('[data-test-plugin-id]'),
    28      controllerHealth: text('[data-test-plugin-controller-health]'),
    29      nodeHealth: text('[data-test-plugin-node-health]'),
    30      provider: text('[data-test-plugin-provider]'),
    31  
    32      clickRow: clickable(),
    33      clickName: clickable('[data-test-plugin-id] a'),
    34    }),
    35  
    36    nextPage: clickable('[data-test-pager="next"]'),
    37    prevPage: clickable('[data-test-pager="prev"]'),
    38  
    39    isEmpty: isPresent('[data-test-empty-plugins-list]'),
    40    emptyState: {
    41      headline: text('[data-test-empty-plugins-list-headline]'),
    42    },
    43  
    44    error: error(),
    45    pageSizeSelect: pageSizeSelect(),
    46  });