github.com/zhizhiboom/nomad@v0.8.5-0.20180907175415-f28fd3a1a056/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 14 export default create({ 15 pageSize: 10, 16 17 visit: visitable('/jobs/:id/:name'), 18 19 search: fillable('.search-box input'), 20 21 tasksCount: text('[data-test-task-group-tasks]'), 22 cpu: text('[data-test-task-group-cpu]'), 23 mem: text('[data-test-task-group-mem]'), 24 disk: text('[data-test-task-group-disk]'), 25 26 breadcrumbs: collection('[data-test-breadcrumb]', { 27 id: attribute('data-test-breadcrumb'), 28 text: text(), 29 visit: clickable(), 30 }), 31 32 breadcrumbFor(id) { 33 return this.breadcrumbs.toArray().find(crumb => crumb.id === id); 34 }, 35 36 ...allocations(), 37 38 isEmpty: isPresent('[data-test-empty-allocations-list]'), 39 40 emptyState: { 41 headline: text('[data-test-empty-allocations-list-headline]'), 42 }, 43 });