From 45e4817a58f3c5b4636d52b6b3a59851cbeea725 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonne=20Ha=C3=9F?= Date: Sun, 11 Aug 2013 11:20:29 +0200 Subject: [PATCH] expect the ajax request updating the profile name in features/signs_up.feature --- features/signs_up.feature | 4 +++- features/step_definitions/custom_web_steps.rb | 4 ++++ 2 files changed, 7 insertions(+), 1 deletion(-) 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