2019-12-03 03:22:41 +00:00
|
|
|
import { attribute, property, clickable, hasClass, isPresent, text } from 'ember-cli-page-object';
|
|
|
|
|
|
|
|
export default scope => ({
|
|
|
|
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]'),
|
|
|
|
});
|