2021-12-28 16:08:12 +00:00
|
|
|
import {
|
|
|
|
clickable,
|
|
|
|
create,
|
|
|
|
isPresent,
|
|
|
|
text,
|
|
|
|
visitable,
|
|
|
|
} from 'ember-cli-page-object';
|
2020-05-20 02:22:12 +00:00
|
|
|
|
|
|
|
import allocations from 'nomad-ui/tests/pages/components/allocations';
|
2021-04-29 20:00:59 +00:00
|
|
|
import { multiFacet } from 'nomad-ui/tests/pages/components/facet';
|
2020-05-20 02:22:12 +00:00
|
|
|
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: {
|
2021-04-29 20:00:59 +00:00
|
|
|
health: multiFacet('[data-test-health-facet]'),
|
|
|
|
type: multiFacet('[data-test-type-facet]'),
|
2020-05-20 02:22:12 +00:00
|
|
|
},
|
|
|
|
});
|