Functional Testing – Hiding Async

Update: This post is now available at a new location:
https://blog.ngeor.com/2016/08/06/functional-testing-hiding-async.html

In the previous post, we explored the Page Object pattern and rewrote our tests to use this technique. Sometimes, it can be that the tests appear to be a bit verbose due to the usage of promises. Additionally, promises and asynchronous programming in general can be somewhat confusing to developers. Let’s see some ways of making the tests shorter and easier to read.

Continue reading Functional Testing – Hiding Async

Advertisements

Chai as promised with Chai string

Update: This post is now available at a new location:
https://blog.ngeor.com/2016/02/22/chai-as-promised-with-chai-string.html

Here’s a small tip that puzzled us at work the other day for a while. How do you use chai-as-promised together with chai-string? Continue reading Chai as promised with Chai string