Last active
October 28, 2018 21:47
-
-
Save Robdel12/9a68695303223e09d52538f6803a1d9e to your computer and use it in GitHub Desktop.
For this blog post: https://medium.com/@robdel12/jest-bigtest-interactor-component-test-%EF%B8%8F-11b1947954c8
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import InputInteractor from 'your-component-library'; | |
import ButtonInteractor from 'your-component-library'; | |
import CheckboxInteractor from 'your-component-library'; | |
@Interactor.extend | |
class SignUpInteractor { | |
firstName = scoped("[data-test-first-name]", InputInteractor); | |
lastName = scoped("[data-test-last-name]", InputInteractor); | |
subscribeCheckbox = scoped("[data-test-email-checkbox]", CheckboxInteractor); | |
submitBtn = scoped('[type="submit"]', ButtonInteractor); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment