From 9244a9547278cf00bd1629591156d185bcc83ff9 Mon Sep 17 00:00:00 2001 From: Maikel Linke Date: Mon, 16 Mar 2020 11:18:32 +1100 Subject: [PATCH] Direct new enterprise users to their dashboard People were directed to the home page and had to do several more clicks to continue with their enterprise setup. --- app/views/registration/steps/_finished.html.haml | 2 +- config/locales/en.yml | 2 +- spec/features/consumer/registration_spec.rb | 3 +++ 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/app/views/registration/steps/_finished.html.haml b/app/views/registration/steps/_finished.html.haml index d22384dbdb..f78178c0df 100644 --- a/app/views/registration/steps/_finished.html.haml +++ b/app/views/registration/steps/_finished.html.haml @@ -9,4 +9,4 @@ %p= t(".login") .row .small-12.columns.text-center - %a.button.primary{ type: "button", href: "/" }= "#{t(".action")} >" + %a.button.primary{ type: "button", href: spree.admin_dashboard_path }= t(".action") diff --git a/config/locales/en.yml b/config/locales/en.yml index ed6ae414dd..621e518d76 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -1987,7 +1987,7 @@ See the %{link} to find out more about %{sitename}'s features and to start using headline: "Finished!" thanks: "Thanks for filling out the details for %{enterprise}." login: "You can change or update your enterprise at any stage by logging into Open Food Network and going to Admin." - action: "Open Food Network home" + action: "Go to Enterprise Dashboard" back: "Back" continue: "Continue" diff --git a/spec/features/consumer/registration_spec.rb b/spec/features/consumer/registration_spec.rb index f92db8835a..dc0d42183c 100644 --- a/spec/features/consumer/registration_spec.rb +++ b/spec/features/consumer/registration_spec.rb @@ -121,6 +121,9 @@ feature "Registration", js: true do expect(e.linkedin).to eq "LiNkEdIn" expect(e.twitter).to eq "@TwItTeR" expect(e.instagram).to eq "@InStAgRaM" + + click_link "Go to Enterprise Dashboard" + expect(page).to have_content "CHOOSE YOUR PACKAGE" end context "when the user has no more remaining enterprises" do