github.com/zhizhiboom/nomad@v0.8.5-0.20180907175415-f28fd3a1a056/ui/tests/pages/clients/list.js (about) 1 import { 2 create, 3 collection, 4 clickable, 5 fillable, 6 isPresent, 7 text, 8 visitable, 9 } from 'ember-cli-page-object'; 10 11 export default create({ 12 visit: visitable('/clients'), 13 14 search: fillable('.search-box input'), 15 16 nodes: collection('[data-test-client-node-row]', { 17 id: text('[data-test-client-id]'), 18 name: text('[data-test-client-name]'), 19 status: text('[data-test-client-status]'), 20 drain: text('[data-test-client-drain]'), 21 eligibility: text('[data-test-client-eligibility]'), 22 address: text('[data-test-client-address]'), 23 datacenter: text('[data-test-client-datacenter]'), 24 allocations: text('[data-test-client-allocations]'), 25 26 clickRow: clickable(), 27 clickName: clickable('[data-test-client-name] a'), 28 }), 29 30 hasPagination: isPresent('[data-test-pagination]'), 31 32 isEmpty: isPresent('[data-test-empty-clients-list]'), 33 empty: { 34 headline: text('[data-test-empty-clients-list-headline]'), 35 }, 36 37 error: { 38 isPresent: isPresent('[data-test-error]'), 39 title: text('[data-test-error-title]'), 40 message: text('[data-test-error-message]'), 41 seekHelp: clickable('[data-test-error-message] a'), 42 }, 43 });