我正在使用 Cucumber/Capybara 编写一些功能级别测试。
这是我的功能定义
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
我如何定义检查它是否进入特定页面的步骤?基本上我如何定义以下步骤?
Then(/^I should go to the dashboard page$/) do
end
还有 Cucumber/Capybara 步骤定义的文档吗?