831ed35136
* Update dependency ember-cli-page-object to v2 * upgrade to new APIs --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Jeldrik Hanschke <admin@jhanschke.de>
25 lines
654 B
JavaScript
25 lines
654 B
JavaScript
import PageObject from 'ember-cli-page-object';
|
|
|
|
const { clickable, collection, fillable, property, text } = PageObject;
|
|
|
|
const { assign } = Object;
|
|
|
|
/*
|
|
* shared features between all pages
|
|
*/
|
|
export const defaultsForApplication = {
|
|
locale: fillable('.language-select'),
|
|
};
|
|
|
|
/*
|
|
* shared features between all create/* page objects
|
|
*/
|
|
export const defaultsForCreate = assign({}, defaultsForApplication, {
|
|
back: clickable('button.prev'),
|
|
next: clickable('button[type="submit"]'),
|
|
statusBar: collection('.form-steps button', {
|
|
isDisabled: property('disabled'),
|
|
text: text(),
|
|
}),
|
|
activeStep: text('.form-steps button.btn-primary'),
|
|
});
|