We've fixed bug and now you can use wait
operator as a last action in perform
block
html.perform(
click.in('.my-element'),
wait(200)
);
If you want to test component which using for example angular.element()
function (or library, eg. ngDialog)
you can add attachToDocument
configuration flag.
beforeEach(() => {
app.run(['moduleName'], {attachToDocument : true});
}
Because we need to detach component from document after the test you need to call app.stop()
function as well
afterEach(() => {
app.stop();
}
Now we can use blur action on element
html.perform(
blur.from('input.name')
);
Now we can pass url to server http request as RegExp instead of String
server.get(new RegExp('/api/user/(\\d+)/address'), res => res.sendStatus(200));