From 5b3ff9160dc2559236fe7e044e1cc1a3a51cf593 Mon Sep 17 00:00:00 2001 From: Rob Harrington Date: Fri, 17 Oct 2014 17:15:16 +1100 Subject: [PATCH] Fix Registration spec --- spec/features/consumer/registration_spec.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/spec/features/consumer/registration_spec.rb b/spec/features/consumer/registration_spec.rb index 551490363c..ea09450467 100644 --- a/spec/features/consumer/registration_spec.rb +++ b/spec/features/consumer/registration_spec.rb @@ -32,7 +32,7 @@ feature "Registration", js: true do fill_in 'enterprise_city', with: 'Northcote' fill_in 'enterprise_zipcode', with: '3070' select 'Australia', from: 'enterprise_country' - select 'Vic', from: 'enterprise_state' + select 'VIC', from: 'enterprise_state' click_button 'Continue' # Filling in Contact Details @@ -43,7 +43,7 @@ feature "Registration", js: true do click_button 'Continue' # Choosing a type - expect(page).to have_content 'Last step to create your enterprise!' + expect(page).to have_content 'Last step to add My Awesome Enterprise!' click_link 'producer-panel' click_button 'Continue' @@ -77,7 +77,7 @@ feature "Registration", js: true do click_button 'Continue' # Filling in social - expect(page).to have_content 'Almost there!' + expect(page).to have_content 'How can people find My Awesome Enterprise online?' fill_in 'enterprise_website', with: 'www.shop.com' fill_in 'enterprise_facebook', with: 'FaCeBoOk' fill_in 'enterprise_linkedin', with: 'LiNkEdIn' @@ -86,7 +86,7 @@ feature "Registration", js: true do click_button 'Continue' # Done - expect(page).to have_content "That's all of the details we need for My Awesome Enterprise" + expect(page).to have_content "Finished!" e.reload expect(e.website).to eq "www.shop.com" expect(e.facebook).to eq "FaCeBoOk"