O'Reilly logo

Continuous Integration, Delivery, and Deployment by Sander Rossel

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Testing our website

Time to add some tests for our web shop. This also gives us the chance to see a bit more from the Protractor API. I can not explain it all in this chapter, but we will see a couple of functions on elements and lists of elements. Just keep in mind that every function in Protractor returns a promise and that Jasmine will resolve it for us automatically.

Personally, I am not a fan of HTML and CSS. It just does not work, so when it does, I would like to test that things stay as they are. How about we add a test that checks whether the titles of the Other people bought... products on our homepage are properly cut off to fit the thumbnails? It immediately becomes clear why I do not like HTML and CSS. There is no way to check ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required