analytics/test/workers
Vini Brasil 48b02c1396
Avoid suggesting plan for trials switching to enterprise plans (#3282)
This commit fixes a bug where the SendTrialNotifications job tried to
suggest a plan for users switching to enterprise plans, resulting in the
exception below:

```
UndefinedFunctionError: function :enterprise.volume/0 is undefined (module :enterprise is not available)
  Module "enterprise", in :enterprise.volume/0
  File "lib/plausible_web/templates/email/trial_upgrade_email.html.eex", line 5, in PlausibleWeb.EmailView."trial_upgrade_email.html"/1
  File "lib/phoenix_view.ex", line 381, in Phoenix.View.render_within/3
  File "lib/phoenix_view.ex", line 557, in Phoenix.View.render_to_iodata/3
  File "lib/phoenix_view.ex", line 564, in Phoenix.View.render_to_string/3
  File "lib/bamboo_phoenix.ex", line 291, in Bamboo.Phoenix.render_text_or_html_email/1
  File "lib/workers/send_trial_notifications.ex", line 67, in Plausible.Workers.SendTrialNotifications.send_today_reminder/1
  File "lib/workers/send_trial_notifications.ex", line 36, in anonymous fn/2 in Plausible.Workers.SendTrialNotifications.perform/1
```
2023-08-21 09:01:50 -03:00
..
check_usage_test.exs Suggest enterprise plan when usage is greater than 10M pageviews (#2345) 2022-10-25 13:16:44 +02:00
clean_email_verification_codes_test.exs Upgrades Oban to v2.6.1 (#967) 2021-04-26 11:32:18 +03:00
clean_invitations_test.exs Invitations (#1122) 2021-06-16 15:00:07 +03:00
expire_domain_change_transitions_test.exs Fix flaky log assertion (#3199) 2023-07-27 12:51:54 +02:00
import_google_analytics_test.exs Add eventually/1 call to flaky test (#3054) 2023-06-19 10:32:34 +01:00
lock_sites_test.exs Manually lock outgrown enterprise accounts (#2197) 2022-09-20 11:46:28 +03:00
notify_annual_renewal_test.exs Google APIs integration improvements (#2358) 2022-10-24 09:34:02 +02:00
schedule_email_reports_test.exs Do not send email reports for locked sites 2021-06-17 10:20:54 +03:00
send_check_stats_emails_test.exs Conditionally support switching between v1 and v2 clickhouse schemas (#2780) 2023-03-27 13:52:42 +02:00
send_email_report_test.exs Fix weekly/monthly report e-mails (MJML) (#3150) 2023-07-17 16:59:01 +02:00
send_site_setup_emails_test.exs Conditionally support switching between v1 and v2 clickhouse schemas (#2780) 2023-03-27 13:52:42 +02:00
send_trial_notifications_test.exs Avoid suggesting plan for trials switching to enterprise plans (#3282) 2023-08-21 09:01:50 -03:00
spike_notifier_test.exs add a test and fix rendering the dashboard link 2022-11-03 11:31:32 +02:00