Class: Brut::SpecSupport::Matchers::BePageFor

Inherits:
Object
  • Object
show all
Defined in:
lib/brut/spec_support/matchers/be_page_for.rb

Overview

Matcher for end-to-end tests to assert that the current page is the page you expect it to be. This is based on the FrontEnd::Components::PageIdentifier component, which must be included on the page for this matcher to work.

Examples:

expect(page).to be_page_for(HomePage)