Testing an Angular page with Behat

How about testing these Angular pages? In the previous recipes, I set up Behat and showed how to use this tool to not only test your site but also to help you write code. I will now show how easy it is to test it using Behat over other tools such as Protractor, since with Behat, we get the benefit of Gherkin-based tests that can both test the UI and do Integration-level tests.

Getting ready

In the previous recipes, I installed Behat. I will go over it again, so a base Laravel install should be enough.

How to do it...

  1. Install Behat using composer; your composer.json will look like this:
    How to do it...
  2. Run composer update, or if you ...

Get Laravel 5.x Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.