github.com/Ilhicas/nomad@v1.0.4-0.20210304152020-e86851182bc3/ui/tests/pages/components/toggle.js (about) 1 import { attribute, property, clickable, hasClass, isPresent, text } from 'ember-cli-page-object'; 2 3 export default scope => ({ 4 scope, 5 6 isPresent: isPresent(), 7 isDisabled: attribute('disabled', '[data-test-input]'), 8 isActive: property('checked', '[data-test-input]'), 9 10 hasDisabledClass: hasClass('is-disabled', '[data-test-label]'), 11 hasActiveClass: hasClass('is-active', '[data-test-label]'), 12 13 label: text('[data-test-label]'), 14 title: attribute('title'), 15 16 toggle: clickable('[data-test-input]'), 17 });