2021-12-28 16:08:12 +00:00
|
|
|
import {
|
|
|
|
attribute,
|
|
|
|
property,
|
|
|
|
clickable,
|
|
|
|
hasClass,
|
|
|
|
isPresent,
|
|
|
|
text,
|
|
|
|
} from 'ember-cli-page-object';
|
2019-12-03 03:22:41 +00:00
|
|
|
|
2021-12-28 14:45:20 +00:00
|
|
|
export default (scope) => ({
|
2019-12-03 03:22:41 +00:00
|
|
|
scope,
|
|
|
|
|
|
|
|
isPresent: isPresent(),
|
|
|
|
isDisabled: attribute('disabled', '[data-test-input]'),
|
|
|
|
isActive: property('checked', '[data-test-input]'),
|
|
|
|
|
|
|
|
hasDisabledClass: hasClass('is-disabled', '[data-test-label]'),
|
|
|
|
hasActiveClass: hasClass('is-active', '[data-test-label]'),
|
|
|
|
|
|
|
|
label: text('[data-test-label]'),
|
2020-10-29 12:46:42 +00:00
|
|
|
title: attribute('title'),
|
2019-12-03 03:22:41 +00:00
|
|
|
|
|
|
|
toggle: clickable('[data-test-input]'),
|
|
|
|
});
|