mirror of
https://github.com/plausible/analytics.git
synced 2024-11-22 02:27:57 +03:00
Change the copy when switching a plan (#4796)
* Update plan_box.ex * Fix test assertions --------- Co-authored-by: Adam Rutkowski <hq@mtod.org>
This commit is contained in:
parent
6822b29016
commit
5072613c4f
@ -357,7 +357,7 @@ defmodule PlausibleWeb.Components.Billing.PlanBox do
|
||||
|> Enum.map(fn feature_mod -> feature_mod.display_name() end)
|
||||
|> PlausibleWeb.TextHelpers.pretty_join()
|
||||
|
||||
"This plan does not support #{features_list_str}, which you are currently using. Please note that by subscribing to this plan you will lose access to #{if length(features) == 1, do: "this feature", else: "these features"}."
|
||||
"This plan does not support #{features_list_str}, which you have been using. By subscribing to this plan, you will not have access to #{if length(features) == 1, do: "this feature", else: "these features"}."
|
||||
end
|
||||
|
||||
defp contact_button(assigns) do
|
||||
|
@ -221,7 +221,7 @@ defmodule PlausibleWeb.Live.ChoosePlanTest do
|
||||
{:ok, _lv, doc} = get_liveview(conn)
|
||||
|
||||
assert text_of_attr(find(doc, @growth_checkout_button), "onclick") =~
|
||||
"if (confirm(\"This plan does not support Custom Properties, which you are currently using. Please note that by subscribing to this plan you will lose access to this feature.\")) {Paddle.Checkout.open"
|
||||
"if (confirm(\"This plan does not support Custom Properties, which you have been using. By subscribing to this plan, you will not have access to this feature.\")) {Paddle.Checkout.open"
|
||||
end
|
||||
|
||||
test "recommends Growth tier when no premium features were used", %{conn: conn} do
|
||||
@ -484,7 +484,7 @@ defmodule PlausibleWeb.Live.ChoosePlanTest do
|
||||
assert doc =~ "Your account has been invited to become the owner of a site"
|
||||
|
||||
assert text_of_attr(find(doc, @growth_checkout_button), "onclick") =~
|
||||
"if (confirm(\"This plan does not support Custom Properties, which you are currently using. Please note that by subscribing to this plan you will lose access to this feature.\")) {window.location = "
|
||||
"if (confirm(\"This plan does not support Custom Properties, which you have been using. By subscribing to this plan, you will not have access to this feature.\")) {window.location ="
|
||||
|
||||
assert text_of_element(doc, @business_highlight_pill) == "Recommended"
|
||||
refute element_exists?(doc, @growth_highlight_pill)
|
||||
@ -740,7 +740,7 @@ defmodule PlausibleWeb.Live.ChoosePlanTest do
|
||||
{:ok, _lv, doc} = get_liveview(conn)
|
||||
|
||||
assert text_of_attr(find(doc, @growth_checkout_button), "onclick") =~
|
||||
"if (confirm(\"This plan does not support Custom Properties, Revenue Goals and Stats API, which you are currently using. Please note that by subscribing to this plan you will lose access to these features.\")) {window.location = "
|
||||
"if (confirm(\"This plan does not support Custom Properties, Revenue Goals and Stats API, which you have been using. By subscribing to this plan, you will not have access to these features.\")) {window.location = "
|
||||
end
|
||||
end
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user