Skip to content

Latest commit

 

History

History
62 lines (41 loc) · 1.3 KB

CHANGELOG.md

File metadata and controls

62 lines (41 loc) · 1.3 KB

0.1.5 (7.12.2017)

Allow to call app.stop() method without attachToDocument: true.

0.1.3 (16.11.2017)

Wait as a last action in perform block

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)
    );

0.1.0 (31.10.2017)

Attach to DOM

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();
    }

More complex example

0.0.5 (27.10.2017)

Blur action

Now we can use blur action on element

    html.perform(
      blur.from('input.name')
    );

0.0.1 (29.03.2017)

Accept RegExp as http request url

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));