2016-08-14 22:24:04 +02:00
|
|
|
import PageObject from 'ember-cli-page-object';
|
2016-08-14 22:57:10 +02:00
|
|
|
import { defaultsForCreate } from 'croodle/tests/pages/defaults';
|
2016-08-26 00:36:41 +02:00
|
|
|
import { hasFocus } from 'croodle/tests/pages/helpers';
|
2016-04-08 21:48:22 +02:00
|
|
|
|
2016-08-14 22:57:10 +02:00
|
|
|
const {
|
|
|
|
assign
|
|
|
|
} = Object;
|
|
|
|
|
|
|
|
const {
|
2016-04-08 21:48:22 +02:00
|
|
|
fillable,
|
|
|
|
visitable
|
|
|
|
} = PageObject;
|
|
|
|
|
2016-08-21 14:31:39 +02:00
|
|
|
export default PageObject.create(assign({}, defaultsForCreate, {
|
2016-04-08 21:48:22 +02:00
|
|
|
pollType: fillable('.poll-type select'),
|
2016-08-26 00:36:41 +02:00
|
|
|
pollTypeHasFocus: hasFocus('.poll-type select'),
|
2016-04-08 21:48:22 +02:00
|
|
|
visit: visitable('/create')
|
2016-08-14 22:57:10 +02:00
|
|
|
}));
|