sethmcl/nightwatch-pages

Grouping pages

Opened this issue · 1 comments

Hi. I would like to group my pages files and put them into separate subdirectories of the main directory. Then in my tests I would like to call require('nightwatch-pages')(client, path) only once with the path to the main directory as an argument. Is it possible to load pages this way? When I try this approach I get errors, because pages that are in subdirectories don't have client object attached. Client object is attached only to files in main directory, not to files in subdirectories. Is there a simple workaround of this problem? Thanks in advance.

It was created with intention that it should do that, but it wasn't tested, so it failed. You can look up my implementation pull request for details #2