Rewrite browser tests with expect-dom
jhnns opened this issue · 5 comments
There is a nice expectjs-extension, called expect-dom. For better readability, all browser tests should be adapted to expect-dom.
This is necessary because all dom tests are currently a bit complicated because of the new wrapping feature of the Displayable.class which wraps all nodes with domAdapter.$
(aka jQuery).
Geez ... to much hassle to make it work. It's leaking global vars, overwrites expect's empty(), etc.
We should write step by step our own extensions ...
Maybe we should use jquery-expect
They're both sort of crappy. I've implemented our own extension...
You can now do different assertion with jQuery-objects. Take a look at https://github.com/peerigon/alamid/blob/master/test/testHelpers/expect.jquery.js.
This task will be done step by step but is not important enough to track via an issue.