diff --git a/features/signs_up.feature b/features/signs_up.feature index 04047f07e..22ed067fb 100644 --- a/features/signs_up.feature +++ b/features/signs_up.feature @@ -23,7 +23,9 @@ Feature: new user registration Scenario: new user does not add any tags in setup wizard and cancel the alert When I fill in the following: | profile_first_name | some name | - And I follow "awesome_button" + And I focus the "follow_tags" field + Then I should see a flash message containing "Hey, some name!" + When I follow "awesome_button" And I reject the alert Then I should be on the getting started page And I should see a flash message containing "Alright, I'll wait." diff --git a/features/step_definitions/custom_web_steps.rb b/features/step_definitions/custom_web_steps.rb index 04be88f29..858941670 100644 --- a/features/step_definitions/custom_web_steps.rb +++ b/features/step_definitions/custom_web_steps.rb @@ -304,3 +304,7 @@ end When /^I take the screenshots while logged in$/ do take_screenshots_with_login end + +When /^I focus the "([^"]+)" field$/ do |field| + find_field(field).click +end