open-nomad/ui/tests/pages/jobs/job/definition.js
2018-11-05 15:42:04 -08:00

16 lines
431 B
JavaScript

import { create, isPresent, visitable, clickable, text } from 'ember-cli-page-object';
import jobEditor from 'nomad-ui/tests/pages/components/job-editor';
import error from 'nomad-ui/tests/pages/components/error';
export default create({
visit: visitable('/jobs/:id/definition'),
jsonViewer: isPresent('[data-test-definition-view]'),
editor: jobEditor(),
edit: clickable('[data-test-edit-job]'),
error: error(),
});