github.com/Ilhicas/nomad@v1.0.4-0.20210304152020-e86851182bc3/ui/tests/pages/storage/plugins/detail.js (about) 1 import { clickable, 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/plugins/:id'), 7 8 title: text('[data-test-title]'), 9 10 controllerHealthIsPresent: isPresent('[data-test-plugin-controller-health]'), 11 controllerHealth: text('[data-test-plugin-controller-health]'), 12 nodeHealth: text('[data-test-plugin-node-health]'), 13 provider: text('[data-test-plugin-provider]'), 14 15 controllerAvailabilityIsPresent: isPresent('[data-test-plugin-controller-availability]'), 16 nodeAvailabilityIsPresent: isPresent('[data-test-plugin-node-availability]'), 17 18 ...allocations('[data-test-controller-allocation]', 'controllerAllocations'), 19 ...allocations('[data-test-node-allocation]', 'nodeAllocations'), 20 21 goToControllerAllocations: clickable('[data-test-go-to-controller-allocations]'), 22 goToNodeAllocations: clickable('[data-test-go-to-node-allocations]'), 23 goToControllerAllocationsText: text('[data-test-go-to-controller-allocations]'), 24 goToNodeAllocationsText: text('[data-test-go-to-node-allocations]'), 25 26 controllerTableIsPresent: isPresent('[data-test-controller-allocations]'), 27 28 controllerTableIsEmpty: isPresent('[data-test-empty-controller-allocations]'), 29 controllerEmptyState: { 30 headline: text('[data-test-empty-controller-allocations-headline]'), 31 }, 32 33 nodeTableIsEmpty: isPresent('[data-test-empty-node-allocations]'), 34 nodeEmptyState: { 35 headline: text('[data-test-empty-node-allocations-headline]'), 36 }, 37 });