Skip to content

Instantly share code, notes, and snippets.

@beatfactor
Forked from senocular/nw_api_wish.md
Created August 31, 2017 08:36
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 beatfactor/9a9de5a7c7a71439b5bea094a1436675 to your computer and use it in GitHub Desktop.
Save beatfactor/9a9de5a7c7a71439b5bea094a1436675 to your computer and use it in GitHub Desktop.
Nightwatch API Wishlist
  • all callbacks use result object
  • custom commands, page object/section commands have same behavior/interface
  • client/api property consistency
  • better separation of user-defined apis and internal properties (page objects etc)
  • page/section objects have full api surface
  • Page objects, commands classes, having proper instanceof-checkable instances (no weird F() constructor)
  • Support command overrides rather than throwing an error
  • no legacy stuff
    • afterEach hook can receive the browser object only in its async form
  • async behavior consistency/clarity
    • shouldn't need to emit 'complete' in next tick
  • command behavior with completion (what do I mean here?)
  • --tag cli arg to support comma-separated list format
  • Custom commands don't need to call a command to complete
  • Global inconsistencies in parallel test execution
  • setValue should clear then sends text
  • browser.element(using, selector) vs. browser.expect.element(selector, using) (reversed params)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment