I am using Cucumber/Capybara to write some feature level tests.
Here is my feature definition
Feature: User Signin
As a User
I want to signin
So i can use my app
Background:
Given user with "email" email and "password" password
Scenario: Signing in with correct credentials
When I go to sign in page
And I fill in "user_email" with "email"
And I fill in "user_password" with "password"
And I click "Sign in" button
Then I should go to the dashboard page
How do i define the step to check if it went to a specific page? Basically how do i define the following step?
Then(/^I should go to the dashboard page$/) do
end
Also is there a documentation for Cucumber/Capybara step definitions?