diff --git a/app/components/marketplace/stripe_overview_component/stripe_overview_component.html.erb b/app/components/marketplace/stripe_overview_component/stripe_overview_component.html.erb index d8382010d..d66281c94 100644 --- a/app/components/marketplace/stripe_overview_component/stripe_overview_component.html.erb +++ b/app/components/marketplace/stripe_overview_component/stripe_overview_component.html.erb @@ -1,4 +1,4 @@ -<%= render CardComponent.new(classes: "flex flex-col h-full +<%= render CardComponent.new(dom_id: "stripe_overview", classes: "flex flex-col h-full ") do %> <%- if marketplace.stripe_api_key? %>
@@ -7,7 +7,7 @@ <%- end %> diff --git a/spec/furniture/marketplace/collecting_payments_system_spec.rb b/spec/furniture/marketplace/collecting_payments_system_spec.rb index d5fc28e9b..6e8cb9e5c 100644 --- a/spec/furniture/marketplace/collecting_payments_system_spec.rb +++ b/spec/furniture/marketplace/collecting_payments_system_spec.rb @@ -19,7 +19,9 @@ end click_on("Payment Settings") - click_on("Stripe Account") + within("#stripe_overview") do + click_on("Add Stripe Account") + end click_on("Add a Stripe API key to #{space.name}") click_on("Add Utility") select("stripe", from: "Type") @@ -35,7 +37,7 @@ visit polymorphic_path(marketplace.location(:edit)) click_on("Payment Settings") - click_on("Stripe Account") + click_on("View Stripe Account") expect(page).to have_content("Connect to Stripe") end @@ -47,7 +49,7 @@ click_on("Manage Marketplace") end click_on("Payment Settings") - click_on("Stripe Account") + click_on("View Stripe Account") expect(page).to have_content("Connect to Stripe") # @todo actually figure out how to do the connect to stripe bit :X end