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.
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”