decide.nolog.cz/tests/pages/create/options-datetime.js
Jeldrik Hanschke 0f94d81ad4
fix ember-cli-page-object deprecations (#674)
* fix ember-cli-page-object deprecations

* make linter happy
2023-10-15 23:26:18 +02:00

27 lines
730 B
JavaScript

import PageObject from 'ember-cli-page-object';
import { defaultsForCreate } from 'croodle/tests/pages/defaults';
import { hasFocus } from 'croodle/tests/pages/helpers';
const { assign } = Object;
let { clickable, collection, fillable, hasClass, text } = PageObject;
export default PageObject.create(
assign({}, defaultsForCreate, {
times: collection({
itemScope: '.form-group',
item: {
add: clickable('button.add'),
delete: clickable('button.delete'),
label: text('label'),
labelIsHidden: hasClass('label', 'sr-only'),
time: fillable('input'),
},
}),
firstTime: {
scope: '.form-group:first',
inputHasFocus: hasFocus('input'),
},
})
);