2020-05-05 00:04:40 +00:00
|
|
|
import { clickable, collection, create, isPresent, text, visitable } from 'ember-cli-page-object';
|
|
|
|
|
|
|
|
import error from 'nomad-ui/tests/pages/components/error';
|
|
|
|
import pageSizeSelect from 'nomad-ui/tests/pages/components/page-size-select';
|
|
|
|
|
|
|
|
export default create({
|
|
|
|
pageSize: 25,
|
|
|
|
|
|
|
|
visit: visitable('/csi/plugins'),
|
|
|
|
|
|
|
|
plugins: collection('[data-test-plugin-row]', {
|
|
|
|
id: text('[data-test-plugin-id]'),
|
|
|
|
controllerHealth: text('[data-test-plugin-controller-health]'),
|
|
|
|
nodeHealth: text('[data-test-plugin-node-health]'),
|
|
|
|
provider: text('[data-test-plugin-provider]'),
|
2020-05-05 01:11:09 +00:00
|
|
|
|
|
|
|
clickRow: clickable(),
|
|
|
|
clickName: clickable('[data-test-plugin-id] a'),
|
2020-05-05 00:04:40 +00:00
|
|
|
}),
|
|
|
|
|
|
|
|
nextPage: clickable('[data-test-pager="next"]'),
|
|
|
|
prevPage: clickable('[data-test-pager="prev"]'),
|
|
|
|
|
|
|
|
isEmpty: isPresent('[data-test-empty-plugins-list]'),
|
|
|
|
emptyState: {
|
|
|
|
headline: text('[data-test-empty-plugins-list-headline]'),
|
|
|
|
},
|
|
|
|
|
|
|
|
error: error(),
|
|
|
|
pageSizeSelect: pageSizeSelect(),
|
|
|
|
});
|