29 lines
838 B
JavaScript
29 lines
838 B
JavaScript
import { clickable, create, isPresent, text, visitable } from 'ember-cli-page-object';
|
|
|
|
import allocations from 'nomad-ui/tests/pages/components/allocations';
|
|
import facet from 'nomad-ui/tests/pages/components/facet';
|
|
import pageSizeSelect from 'nomad-ui/tests/pages/components/page-size-select';
|
|
|
|
export default create({
|
|
pageSize: 25,
|
|
|
|
visit: visitable('/csi/plugins/:id/allocations'),
|
|
|
|
nextPage: clickable('[data-test-pager="next"]'),
|
|
prevPage: clickable('[data-test-pager="prev"]'),
|
|
|
|
isEmpty: isPresent('[data-test-empty-jobs-list]'),
|
|
emptyState: {
|
|
headline: text('[data-test-empty-jobs-list-headline]'),
|
|
},
|
|
|
|
...allocations('[data-test-allocation]', 'allocations'),
|
|
|
|
pageSizeSelect: pageSizeSelect(),
|
|
|
|
facets: {
|
|
health: facet('[data-test-health-facet]'),
|
|
type: facet('[data-test-type-facet]'),
|
|
},
|
|
});
|