github.com/iqoqo/nomad@v0.11.3-0.20200911112621-d7021c74d101/ui/tests/pages/storage/volumes/list.js (about) 1 import { 2 clickable, 3 collection, 4 create, 5 fillable, 6 isPresent, 7 text, 8 visitable, 9 } from 'ember-cli-page-object'; 10 11 import error from 'nomad-ui/tests/pages/components/error'; 12 import pageSizeSelect from 'nomad-ui/tests/pages/components/page-size-select'; 13 14 export default create({ 15 pageSize: 25, 16 17 visit: visitable('/csi/volumes'), 18 19 search: fillable('[data-test-volumes-search] input'), 20 21 volumes: collection('[data-test-volume-row]', { 22 name: text('[data-test-volume-name]'), 23 schedulable: text('[data-test-volume-schedulable]'), 24 controllerHealth: text('[data-test-volume-controller-health]'), 25 nodeHealth: text('[data-test-volume-node-health]'), 26 provider: text('[data-test-volume-provider]'), 27 allocations: text('[data-test-volume-allocations]'), 28 29 clickRow: clickable(), 30 clickName: clickable('[data-test-volume-name] a'), 31 }), 32 33 nextPage: clickable('[data-test-pager="next"]'), 34 prevPage: clickable('[data-test-pager="prev"]'), 35 36 isEmpty: isPresent('[data-test-empty-volumes-list]'), 37 emptyState: { 38 headline: text('[data-test-empty-volumes-list-headline]'), 39 }, 40 41 error: error(), 42 pageSizeSelect: pageSizeSelect(), 43 44 namespaceSwitcher: { 45 isPresent: isPresent('[data-test-namespace-switcher]'), 46 open: clickable('[data-test-namespace-switcher] .ember-power-select-trigger'), 47 options: collection('.ember-power-select-option', { 48 testContainer: '#ember-testing', 49 resetScope: true, 50 label: text(), 51 }), 52 }, 53 });