Talking about: testing

Protractor taking screenshots

A very useful trick when using protractor with jasmine is the ability to take screenshots when one of your tests fail. Here is a very simple afterEach block that verifies if your test passed. If not, a screenshot of the browser is taken and saved. Very useful for figuring out what is going on with […]

Continue reading →

Quick tip

If you are using protractor to test your webapps, then you are inevitably using Promises. Sometimes you might want to create an immediately resolved/rejected promise. Typically you would write this: But you can just as easily write the same thing like this: Much easier!

Continue reading →