browser-monkey
browser-monkey copied to clipboard
browser-monkey 3
- add
map,mapAll, andensure - remove dependency on jQuery
- remove dependency on chai
- tests are much much faster, since we stub out retry mechanism
- retry can be overridden
- better error messages, showing how many elements were found after each query
- using "assemblies" to run tests against DOM and VDOM (no VDOM yet tho)
- handleEvent is now async so we can slow down actions for demos
- can call
.then()orawaiton a query (finder?) to get the current elements
- [ ] fix async stacktraces
- [ ] update readme
- [ ] vdom support
- [ ] improve error messages. e.g.
expected some elements (found: scope [1], iframeContent [1], find('.message') [0], elements [0])->expected at least one html element at iframeContent [1] -> find('.message') [0]
Ideally should be able to do this
browser.set({
Email: '[email protected]',
})
browser.assert({
Email: '[email protected]',
})
This index.js - module.exports = require('./create')() - creates bm instance at require time. Probably not what I want most of the time. Should it better be module.exports = require('./create') ?