You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
analytics/test/plausible_web/controllers
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
4 years ago
..
CSVs Fix missing 'pageviews' column from 'pages.csv' (#1988) 4 years ago
api Google APIs integration improvements (#2358) 4 years ago
site Google APIs integration improvements (#2358) 4 years ago
admin_auth_controller_test.exs Use GET instead of POST for logout 6 years ago
auth_controller_test.exs Google APIs integration improvements (#2358) 4 years ago
billing_controller_test.exs Google APIs integration improvements (#2358) 4 years ago
invitation_controller_test.exs Google APIs integration improvements (#2358) 4 years ago
site_controller_test.exs Google APIs integration improvements (#2358) 4 years ago
stats_controller_test.exs Google APIs integration improvements (#2358) 4 years ago
unsubscribe_controller_test.exs Add presence check when unsubscribing from email reports 6 years ago