Archive for April 10, 2016

  • Using Page Objects in your Acceptance Tests

    April 10, 2016

    If you’ve written acceptance tests for web applications in the past (also called feature tests), you might be familiar with tools like Capybara, Simplelenium and FluentLenium. These are great abstractions over the browser (thanks, Selenium!) that provide very nice APIs for testing web applications.

    If you’ve done this for a while, you might also have heard of Page Objects. The idea behind them is that your tests should be about the behavior of your application and not about the underlying HTML, since the HTML is an implementation detail and probably not the interesting part of your tests.

    Our base acceptance test

    Let’s assume that we are working on an application where you can browse and review restaurants and we have an acceptance test…

    Continue Reading →