Merge pull request #4998 from mkllnk/4277-signup-flow

Direct new enterprise users to their dashboard
This commit is contained in:
Maikel
2020-03-18 16:17:41 +11:00
committed by GitHub
3 changed files with 5 additions and 2 deletions

View File

@@ -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")

View File

@@ -1989,7 +1989,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"

View File

@@ -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