github.com/ferranbt/nomad@v0.9.3-0.20190607002617-85c449b7667c/ui/tests/pages/jobs/job/task-group.js (about) 1 import { 2 attribute, 3 clickable, 4 create, 5 collection, 6 fillable, 7 isPresent, 8 text, 9 visitable, 10 } from 'ember-cli-page-object'; 11 12 import allocations from 'nomad-ui/tests/pages/components/allocations'; 13 import error from 'nomad-ui/tests/pages/components/error'; 14 15 export default create({ 16 pageSize: 10, 17 18 visit: visitable('/jobs/:id/:name'), 19 20 search: fillable('.search-box input'), 21 22 tasksCount: text('[data-test-task-group-tasks]'), 23 cpu: text('[data-test-task-group-cpu]'), 24 mem: text('[data-test-task-group-mem]'), 25 disk: text('[data-test-task-group-disk]'), 26 27 breadcrumbs: collection('[data-test-breadcrumb]', { 28 id: attribute('data-test-breadcrumb'), 29 text: text(), 30 visit: clickable(), 31 }), 32 33 breadcrumbFor(id) { 34 return this.breadcrumbs.toArray().find(crumb => crumb.id === id); 35 }, 36 37 ...allocations(), 38 39 isEmpty: isPresent('[data-test-empty-allocations-list]'), 40 41 error: error(), 42 43 emptyState: { 44 headline: text('[data-test-empty-allocations-list-headline]'), 45 }, 46 });