Skip to content

Open source, privacy-first web analytics. Lightweight, cookie-free Google Analytics alternative. Self-hosted or cloud.

Adjust note about no invoices (#5412)

Marko Saricfcb704fa244f
diff --git a/lib/plausible_web/templates/settings/invoices.html.heex b/lib/plausible_web/templates/settings/invoices.html.heex
index f53af1dffa..14b5d407e8 100644
--- a/lib/plausible_web/templates/settings/invoices.html.heex
+++ b/lib/plausible_web/templates/settings/invoices.html.heex
@@ -10,7 +10,7 @@
<% {:error, :no_invoices} -> %>
<p class="mt-12 mb-8 text-center text-sm">
<span>
- No invoices issued yet
+ Your invoice will be created once you upgrade to a subscription
</span>
</p>
<% {:error, :request_failed} -> %>
diff --git a/test/plausible_web/controllers/settings_controller_test.exs b/test/plausible_web/controllers/settings_controller_test.exs
index 17f21607d1..172bb5ba5e 100644
--- a/test/plausible_web/controllers/settings_controller_test.exs
+++ b/test/plausible_web/controllers/settings_controller_test.exs
@@ -257,7 +257,9 @@ defmodule PlausibleWeb.SettingsControllerTest do
test "does not show invoice section for a user with no subscription", %{conn: conn} do
conn = get(conn, Routes.settings_path(conn, :invoices))
- assert html_response(conn, 200) =~ "No invoices issued yet"
+
+ assert html_response(conn, 200) =~
+ "Your invoice will be created once you upgrade to a subscription"
end
@tag :ee_only
@@ -545,7 +547,7 @@ defmodule PlausibleWeb.SettingsControllerTest do
|> get(Routes.settings_path(conn, :invoices))
|> html_response(200)
- assert html =~ "No invoices issued yet"
+ assert html =~ "Your invoice will be created once you upgrade to a subscription"
end
@tag :ee_only