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

     1  import {
     2    clickable,
     3    create,
     4    isPresent,
     5    text,
     6    visitable,
     7  } from 'ember-cli-page-object';
     8  
     9  import allocations from 'nomad-ui/tests/pages/components/allocations';
    10  
    11  export default create({
    12    visit: visitable('/csi/plugins/:id'),
    13  
    14    title: text('[data-test-title]'),
    15  
    16    controllerHealthIsPresent: isPresent('[data-test-plugin-controller-health]'),
    17    controllerHealth: text('[data-test-plugin-controller-health]'),
    18    nodeHealth: text('[data-test-plugin-node-health]'),
    19    provider: text('[data-test-plugin-provider]'),
    20  
    21    controllerAvailabilityIsPresent: isPresent(
    22      '[data-test-plugin-controller-availability]'
    23    ),
    24    nodeAvailabilityIsPresent: isPresent('[data-test-plugin-node-availability]'),
    25  
    26    ...allocations('[data-test-controller-allocation]', 'controllerAllocations'),
    27    ...allocations('[data-test-node-allocation]', 'nodeAllocations'),
    28  
    29    goToControllerAllocations: clickable(
    30      '[data-test-go-to-controller-allocations]'
    31    ),
    32    goToNodeAllocations: clickable('[data-test-go-to-node-allocations]'),
    33    goToControllerAllocationsText: text(
    34      '[data-test-go-to-controller-allocations]'
    35    ),
    36    goToNodeAllocationsText: text('[data-test-go-to-node-allocations]'),
    37  
    38    controllerTableIsPresent: isPresent('[data-test-controller-allocations]'),
    39  
    40    controllerTableIsEmpty: isPresent('[data-test-empty-controller-allocations]'),
    41    controllerEmptyState: {
    42      headline: text('[data-test-empty-controller-allocations-headline]'),
    43    },
    44  
    45    nodeTableIsEmpty: isPresent('[data-test-empty-node-allocations]'),
    46    nodeEmptyState: {
    47      headline: text('[data-test-empty-node-allocations-headline]'),
    48    },
    49  });