decide.nolog.cz/tests/pages/defaults.js
2016-08-21 00:38:44 +02:00

24 lines
493 B
JavaScript

import PageObject from 'ember-cli-page-object';
const {
clickable,
collection,
property,
text
} = PageObject;
/*
* shared features between all create/* page objects
*/
export const defaultsForCreate = {
back: clickable('button.back'),
next: clickable('button[type="submit"]'),
statusBar: collection({
active: text('.form-steps button.btn-primary'),
itemScope: '.form-steps button',
item: {
isDisabled: property('disabled'),
text: text()
}
})
};