Skip to content

Instantly share code, notes, and snippets.

@Robdel12
Last active October 28, 2018 21:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Robdel12/9a68695303223e09d52538f6803a1d9e to your computer and use it in GitHub Desktop.
Save Robdel12/9a68695303223e09d52538f6803a1d9e to your computer and use it in GitHub Desktop.
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