2016-08-14 22:57:10 +02:00
|
|
|
import PageObject from 'ember-cli-page-object';
|
|
|
|
|
2023-10-15 20:37:03 +02:00
|
|
|
const { clickable, collection, fillable, property, text } = PageObject;
|
2016-08-14 22:57:10 +02:00
|
|
|
|
2016-08-21 14:31:39 +02:00
|
|
|
const { assign } = Object;
|
|
|
|
|
|
|
|
/*
|
|
|
|
* shared features between all pages
|
|
|
|
*/
|
|
|
|
export const defaultsForApplication = {
|
2023-10-15 20:37:03 +02:00
|
|
|
locale: fillable('.language-select'),
|
2016-08-21 14:31:39 +02:00
|
|
|
};
|
|
|
|
|
2016-08-14 22:57:10 +02:00
|
|
|
/*
|
|
|
|
* shared features between all create/* page objects
|
|
|
|
*/
|
2016-08-21 14:31:39 +02:00
|
|
|
export const defaultsForCreate = assign({}, defaultsForApplication, {
|
2016-09-23 19:39:31 +02:00
|
|
|
back: clickable('button.prev'),
|
2016-08-21 00:24:55 +02:00
|
|
|
next: clickable('button[type="submit"]'),
|
2023-10-16 00:07:22 +02:00
|
|
|
statusBar: collection('.form-steps button', {
|
|
|
|
isDisabled: property('disabled'),
|
|
|
|
text: text(),
|
2023-10-15 20:37:03 +02:00
|
|
|
}),
|
2023-10-16 00:07:22 +02:00
|
|
|
activeStep: text('.form-steps button.btn-primary'),
|
2016-08-21 14:31:39 +02:00
|
|
|
});
|