From d565f94d316fe5297f936a49a0346ea086ac3e73 Mon Sep 17 00:00:00 2001 From: Noah Silvera Date: Mon, 22 Feb 2021 13:25:09 -0800 Subject: Provide helpful links for setting up Taxjar To comply with the certification guidelines for Taxjar, we should provide links to signup for Taxjar, and a link to a help article on aquiring a Taxjar token. --- app/views/spree/admin/taxjar_settings/show.html.erb | 3 ++- spec/features/spree/admin/taxjar_settings_spec.rb | 3 +++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/app/views/spree/admin/taxjar_settings/show.html.erb b/app/views/spree/admin/taxjar_settings/show.html.erb index c66e646..87b97ce 100644 --- a/app/views/spree/admin/taxjar_settings/show.html.erb +++ b/app/views/spree/admin/taxjar_settings/show.html.erb @@ -8,5 +8,6 @@
<% else %> -

You must provide a TaxJar API token to configure the extension. Please see the extension readme for details.

+

You must provide a TaxJar API token to use this extension. You can sign up for TaxJar <%= link_to "here", "https://app.taxjar.com/api_sign_up", target: "_blank", rel: "noreferrer" %>. Please see the extension documentation for details on providing this token to the extension.

+

For more help in aquiring a TaxJar API token, see <%= link_to "How do I get a TaxJar sales tax API token?", "https://support.taxjar.com/article/160-how-do-i-get-a-sales-tax-api-token", target: "_blank", rel: "noreferrer" %>

<% end %> diff --git a/spec/features/spree/admin/taxjar_settings_spec.rb b/spec/features/spree/admin/taxjar_settings_spec.rb index 620b89b..ae2e101 100644 --- a/spec/features/spree/admin/taxjar_settings_spec.rb +++ b/spec/features/spree/admin/taxjar_settings_spec.rb @@ -39,6 +39,9 @@ RSpec.feature 'Admin TaxJar Settings', js: true do expect(page).to have_content("TaxJar Settings") click_on "TaxJar Settings" expect(page).to have_content "You must provide a TaxJar API token" + + expect(page).to have_link(href: "https://app.taxjar.com/api_sign_up") + expect(page).to have_link(href: "https://support.taxjar.com/article/160-how-do-i-get-a-sales-tax-api-token") end end end -- cgit v1.2.3