DavyJonesLocker/ember-cli-test-interactions

Reorganize file structure

Opened this issue · 1 comments

Currently, we have to test helper files:
helpers/interactions.js and helpers/finders.js

Goal:
Break up interactions.js into multiple files so that we have more specific groups of test helper files

Example:

  • helpers/finders.js
  • helpers/clickers.js
  • helpers/fillers.js
  • helpers/removeWhitespace.js (or should we avoid one function files?)

I think breaking finders into a separate file makes sense, but I think breaking the interactions into the event type ("click" vs "fill in") might be too specific. It might not be intuitive when to create a dedicated file vs adding to an existing one (for example, if we want an interaction for selectFromDropdown(), would that be in the clickers.js or would we create a new select-based file?

This library is kind of based off of capybara-extensions, which breaks "nodes" down as follows: https://github.com/jnicklas/capybara/tree/55c2ec354276ad1a6f0376dd787f5d121117269b/lib/capybara/node

Thoughts?