Skip to content

Instantly share code, notes, and snippets.

@Robdel12
Last active October 28, 2018 21:47
Show Gist options
  • Save Robdel12/da4428a8cbd74a732d6d72552f899625 to your computer and use it in GitHub Desktop.
Save Robdel12/da4428a8cbd74a732d6d72552f899625 to your computer and use it in GitHub Desktop.
import Interactor, {
attribute,
property,
clickable,
focusable,
blurrable,
is
} from "@bigtest/interactor";
@Interactor.extend
class CheckboxInteractor {
tabIndex = attribute("input", "tabindex");
isChecked = property("input", "checked");
isDisabled = property("input", "disabled");
hasFocus = is("input", ":focus");
focusCheckbox = focusable("input");
blurCheckbox = blurrable("input");
toggleCheckbox = clickable("input");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment