github.com/anth0d/nomad@v0.0.0-20221214183521-ae3a0a2cad06/ui/tests/pages/storage/plugins/plugin/allocations.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 import { multiFacet } from 'nomad-ui/tests/pages/components/facet'; 11 import pageSizeSelect from 'nomad-ui/tests/pages/components/page-size-select'; 12 13 export default create({ 14 pageSize: 25, 15 16 visit: visitable('/csi/plugins/:id/allocations'), 17 18 nextPage: clickable('[data-test-pager="next"]'), 19 prevPage: clickable('[data-test-pager="prev"]'), 20 21 isEmpty: isPresent('[data-test-empty-jobs-list]'), 22 emptyState: { 23 headline: text('[data-test-empty-jobs-list-headline]'), 24 }, 25 26 ...allocations('[data-test-allocation]', 'allocations'), 27 28 pageSizeSelect: pageSizeSelect(), 29 30 facets: { 31 health: multiFacet('[data-test-health-facet]'), 32 type: multiFacet('[data-test-type-facet]'), 33 }, 34 });