analytics/test/workers
Adam Rutkowski 0fa6b688af
Google APIs integration improvements (#2358)
* Make TestUtils module available in all tests

* Add macros patching the application env in tests

Unfortunately a lot of existing functionality relies on
certain application env setup. This isn't ideal because
the app config is a shared state that prevents us from
running the tests in parallel.

Those macros encapsulate setting up new env for test purposes
and make sure the changes are reverted when the test finishes.

* Allow passing request opts to HTTPClient.post/4

We need this to swap custom request building in
Google Analytics import.

* Unify errors when listing sites

* React: propagate backend error messages if available

* React: catch API errors in Search Terms component

* Propagate google API errors on referrer drilldown

* Handle verified properties errors in SC settings

* Add missing tests for SC settings controller

* Unify errors for fetching search analytics queries (list stats)

* Unify errors refreshing Google Auth Token

* Test fetch_stats/3 errors and replace Double with Mox

* Fixup makrup

* s/class/className

* Simplify Search Terms display in case of errors

* Fix warnings
2022-10-24 09:34:02 +02:00
..
check_usage_test.exs Google APIs integration improvements (#2358) 2022-10-24 09:34:02 +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
import_google_analytics_test.exs Google APIs integration improvements (#2358) 2022-10-24 09:34:02 +02: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 Mark more tests as async 2022-05-06 10:30:38 +03:00
send_email_report_test.exs Google APIs integration improvements (#2358) 2022-10-24 09:34:02 +02:00
send_site_setup_emails_test.exs Google APIs integration improvements (#2358) 2022-10-24 09:34:02 +02:00
send_trial_notifications_test.exs Google APIs integration improvements (#2358) 2022-10-24 09:34:02 +02:00
spike_notifier_test.exs Mark more tests as async 2022-05-06 10:30:38 +03:00