0
我正在使用黃瓜/水豚寫一些功能水平測試。黃瓜步定義
這裏是我的特徵定義
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步驟定義的文檔?