github.com/zhizhiboom/nomad@v0.8.5-0.20180907175415-f28fd3a1a056/ui/tests/pages/jobs/list.js (about) 1 import { 2 attribute, 3 create, 4 collection, 5 clickable, 6 fillable, 7 isPresent, 8 text, 9 visitable, 10 } from 'ember-cli-page-object'; 11 12 export default create({ 13 pageSize: 10, 14 15 visit: visitable('/jobs'), 16 17 search: fillable('[data-test-jobs-search] input'), 18 19 runJob: clickable('[data-test-run-job]'), 20 21 jobs: collection('[data-test-job-row]', { 22 id: attribute('data-test-job-row'), 23 name: text('[data-test-job-name]'), 24 link: attribute('href', '[data-test-job-name] a'), 25 status: text('[data-test-job-status]'), 26 type: text('[data-test-job-type]'), 27 priority: text('[data-test-job-priority]'), 28 taskGroups: text('[data-test-job-task-groups]'), 29 30 clickRow: clickable(), 31 clickName: clickable('[data-test-job-name] a'), 32 }), 33 34 isEmpty: isPresent('[data-test-empty-jobs-list]'), 35 emptyState: { 36 headline: text('[data-test-empty-jobs-list-headline]'), 37 }, 38 39 error: { 40 isPresent: isPresent('[data-test-error]'), 41 title: text('[data-test-error-title]'), 42 message: text('[data-test-error-message]'), 43 seekHelp: clickable('[data-test-error-message] a'), 44 }, 45 46 namespaceSwitcher: { 47 isPresent: isPresent('[data-test-namespace-switcher]'), 48 open: clickable('[data-test-namespace-switcher] .ember-power-select-trigger'), 49 options: collection('.ember-power-select-option', { 50 label: text(), 51 }), 52 }, 53 });