decide.nolog.cz/tests/pages/defaults.js
renovate[bot] 831ed35136
Update dependency ember-cli-page-object to v2 (#673)
* 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>
2023-10-16 00:07:22 +02:00

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'),
});