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-08-14 22:57:10 +02:00
|
|
|
|
2023-10-15 20:37:03 +02:00
|
|
|
const { assign } = Object;
|
2016-04-08 21:48:22 +02:00
|
|
|
|
2023-10-15 20:37:03 +02:00
|
|
|
let { fillable } = PageObject;
|
2016-04-08 21:48:22 +02:00
|
|
|
|
2023-10-15 20:37:03 +02:00
|
|
|
export default PageObject.create(
|
|
|
|
assign({}, defaultsForCreate, {
|
|
|
|
description: fillable('.description textarea'),
|
|
|
|
title: fillable('.title input'),
|
|
|
|
titleHasFocus: hasFocus('.title input'),
|
2023-10-17 10:44:45 +02:00
|
|
|
}),
|
2023-10-15 20:37:03 +02:00
|
|
|
);
|