Near the Norbulingka Institute, Dharamshala, India
By
— < 1 min read

Using Capybara and Rspec assertions in Page Objects

Writing well encapsulated tests in Rails with the Page Object pattern

On my Rails project, I am using RSpec and Capybara to write functional tests.
I did not want to specify any HTML elements in my Capybara feature files, since that makes the feature files brittle to HTML / CSS changes. It also violates the DRY principle and basic code hygiene.

Read the full blog on my older blog site here: Using Capybara and Rspec assertions in Page Objects