seePageIs

Verifies the route of the current page.
(This method cannot be used after visiting a page using an event.)

Arguments

Name Type Required Default Description
route string true The expected route.

Examples

it( "can verify the current route", function() {
    this.visit( "/login" )
        .type( "scotty@uss.enterprise", "email" )
        .type( "miracle_worker", "password" )
        .press( "Log In" )
        .seePageIs( "/" );
} );