2019-05-21 16:23:47 +00:00
|
|
|
import { attribute, clickable, hasClass, isPresent, text } from 'ember-cli-page-object';
|
2019-05-21 00:19:24 +00:00
|
|
|
|
|
|
|
export default scope => ({
|
|
|
|
scope,
|
|
|
|
|
|
|
|
isPresent: isPresent(),
|
|
|
|
|
|
|
|
idle: clickable('[data-test-idle-button]'),
|
|
|
|
confirm: clickable('[data-test-confirm-button]'),
|
|
|
|
cancel: clickable('[data-test-cancel-button]'),
|
|
|
|
|
|
|
|
isRunning: hasClass('is-loading', '[data-test-confirm-button]'),
|
|
|
|
isDisabled: attribute('disabled', '[data-test-idle-button]'),
|
2019-05-21 16:23:47 +00:00
|
|
|
|
|
|
|
cancelIsDisabled: attribute('disabled', '[data-test-cancel-button]'),
|
|
|
|
confirmIsDisabled: attribute('disabled', '[data-test-confirm-button]'),
|
|
|
|
|
|
|
|
idleText: text('[data-test-idle-button]'),
|
|
|
|
cancelText: text('[data-test-cancel-button]'),
|
|
|
|
confirmText: text('[data-test-confirm-button]'),
|
|
|
|
confirmationMessage: text('[data-test-confirmation-message]'),
|
2019-05-21 00:19:24 +00:00
|
|
|
});
|