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 (#6692)
Adamb4838a9f094d
diff --git a/test/plausible_web/live/customer_support/teams_test.exs b/test/plausible_web/live/customer_support/teams_test.exsindex 6bc3e6713e..5e1b138a31 100644--- a/test/plausible_web/live/customer_support/teams_test.exs+++ b/test/plausible_web/live/customer_support/teams_test.exs@@ -217,22 +217,24 @@ defmodule PlausibleWeb.Live.CustomerSupport.TeamsTest doassert text(html) =~ "Deletion scheduled"assert element_exists?(html, ~s|form[phx-submit="snooze-schedule"]|)+ future = Date.utc_today() |> Date.add(7)+lv|> element(~s|form[phx-submit="snooze-schedule"]|)|> render_submit(%{"team_deletion_schedule" => %{- "snoozed_until" => "2026-09-20",+ "snoozed_until" => "#{future}","snooze_note" => "give them time"}})html = render(lv)- assert text(html) =~ "Snoozed until 2026-09-20"+ assert text(html) =~ "Snoozed until #{future}"assert text(html) =~ "give them time"updated = Plausible.Repo.reload!(schedule)assert updated.status == :snoozed- assert updated.snoozed_until == ~D[2026-09-20]+ assert updated.snoozed_until == futureassert updated.snooze_note == "give them time"end