1 Given(/^I go to Create account page at (.+)$/) do |path
|
2 visit(CreateAccountPage
, using_params
: { page_title
: path
})
5 Then(/^form has Create account button$/) do
6 expect(on(CreateAccountPage
).create_account_element
).to exist
9 When(/^I submit the form$/) do
10 on(CreateAccountPage
).create_account
13 Then(/^an error message is displayed$/) do
14 expect(on(CreateAccountPage
).error_message_element
).to exist