open-nomad/ui/tests/pages/storage/plugins/list.js

32 lines
971 B
JavaScript
Raw Normal View History

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]'),
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(),
});