Skip to content

Commit

Permalink
Attempts to fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
rosschapman committed Oct 24, 2023
1 parent 8f703d1 commit df757ad
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -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? %>
<header class="flex font-bold">
Expand All @@ -7,7 +7,7 @@
<footer class="flex flex-row justify-between mt-3">
<%= render ButtonComponent.new(
label: "View #{t('marketplace.stripe_accounts.show.link_to')}",
title: t('marketplace.stripe_accounts.show.link_to'),
title: "View #{t('marketplace.stripe_accounts.show.link_to')}",
href: marketplace.location(:index, child: :stripe_account),
method: :get,
scheme: :secondary) %>
Expand All @@ -22,7 +22,8 @@
title: "Add #{t('marketplace.stripe_accounts.show.link_to')}",
href: marketplace.location(:index, child: :stripe_account),
method: :get,
scheme: :secondary)
scheme: :secondary
)
%>
</footer>
<%- end %>
Expand Down
8 changes: 5 additions & 3 deletions spec/furniture/marketplace/collecting_payments_system_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand All @@ -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

Expand All @@ -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
Expand Down

0 comments on commit df757ad

Please sign in to comment.