Open source, privacy-first web analytics. Lightweight, cookie-free Google Analytics alternative. Self-hosted or cloud.
TypeScript analyticsanalytics-dashboardclickhouseelixirgoogle-analyticsmarketingopen-source-analyticsphoenixplausible-analyticspostgresqlprivacyprivacy-friendlyself-hostedsimple-analyticsstatisticstailwindcssweb-analyticswebsite-analyticswebsite-statswebsite-tracking
Fix flaky test (#6183)
Adam Rutkowskibd37150bd97e
diff --git a/test/plausible_web/controllers/site_controller_test.exs b/test/plausible_web/controllers/site_controller_test.exsindex f047a51a7e..66e2832a36 100644--- a/test/plausible_web/controllers/site_controller_test.exs+++ b/test/plausible_web/controllers/site_controller_test.exs@@ -154,7 +154,7 @@ defmodule PlausibleWeb.SiteControllerTest do)end- conn = get(initial_conn, "/sites")+ conn = get(initial_conn, "/sites?sort_by=alnum&sort_direction=asc")resp = html_response(conn, 200)for i <- 1..24 dodiff --git a/test/plausible_web/live/sites_test.exs b/test/plausible_web/live/sites_test.exsindex 989947c034..5df7d1ee4d 100644--- a/test/plausible_web/live/sites_test.exs+++ b/test/plausible_web/live/sites_test.exs@@ -127,7 +127,7 @@ defmodule PlausibleWeb.Live.SitesTest do_site2 = new_site(domain: "second.example.com", owner: user)_site3 = new_site(domain: "third.another.example.com", owner: user)- {:ok, lv, html} = live(conn, "/sites?page_size=2")+ {:ok, lv, html} = live(conn, "/sites?sory_by=alnum&sort_direction=asc&page_size=2")assert html =~ "first.another.example.com"assert html =~ "second.example.com"