Commit Graph

168 Commits

Author SHA1 Message Date
Claudio Ortolina 7ce2b6a7b2 Add wishlist#show test 2025-01-27 23:33:11 +00:00
Claudio Ortolina f5e29f9e59 Improve collection#show test 2025-01-27 23:31:34 +00:00
Claudio Ortolina 97eb01f6a6 Show record ID on wishlist and collection detail pages 2025-01-27 23:29:01 +00:00
Claudio Ortolina 0d77fdc031 Display badge when an artist is touring 2025-01-25 08:50:46 +00:00
Claudio Ortolina 542702e351 Improve header titles in editing overlay 2025-01-24 14:50:21 +00:00
Claudio Ortolina 3c8b39237c Fix return type of artist_get_info fixture 2025-01-24 10:35:39 +00:00
Claudio Ortolina 96349b918d Add missing Artists.get_artist_info/1 test 2025-01-23 15:27:55 +00:00
Claudio Ortolina e4be44f6bb Add missing Artists.get_all_artist_ids/0 test 2025-01-23 15:24:03 +00:00
Claudio Ortolina b9005e52f9 Use streams with import component 2025-01-20 13:58:21 +00:00
Claudio Ortolina 53d82e661a Extract LiveTestHelpers.escape/1 2025-01-19 16:14:59 +00:00
Claudio Ortolina 8e956577b4 Use css attr selector to test for cover images 2025-01-07 15:57:14 +00:00
Claudio Ortolina ed6ef2c7ef Rename record_fixture* to record* 2025-01-06 14:20:36 +00:00
Claudio Ortolina cf377f6a0c Remove unnecessary alias 2025-01-06 14:13:45 +00:00
Claudio Ortolina fabf0c347a Test redirects location in prod tests 2025-01-05 18:53:47 +00:00
Claudio Ortolina 9428828064 Consolidate datetime as date formatting 2025-01-05 15:48:56 +00:00
Claudio Ortolina 75154df3cf Import only necessary functions from LiveViewTest
So that we don't clash with the imports of PhoenixTest
2025-01-05 15:40:21 +00:00
Claudio Ortolina 04f5c6e5a1 Rewrite LV tests using PhoenixTest 2025-01-05 11:29:33 +00:00
Claudio Ortolina 229445ffc9 Add missing logged_out tag 2025-01-05 11:28:45 +00:00
Claudio Ortolina 5d40080741 Add note about SQLite RANDOM function 2025-01-02 09:38:50 +00:00
Claudio Ortolina 65899b8077 Add tests for /api/collection/random endpoint 2025-01-01 20:57:01 +00:00
Claudio Ortolina 1208d35174 Add prod tests for dev routes 2025-01-01 17:20:32 +00:00
Claudio Ortolina 8bd7197d18 Show purchase date in collection view 2025-01-01 16:45:43 +00:00
Claudio Ortolina 97533416f7 Support arbitrary resizing in cover controller 2024-12-31 11:58:30 +00:00
Claudio Ortolina 68b2d48228 Return thumb_url in latest record response 2024-12-31 11:39:36 +00:00
Claudio Ortolina 6cf7e2c9de Add ordering tests to Collection context 2024-12-30 17:16:14 +00:00
Claudio Ortolina 05f4d6039b Mock artist info fetch to avoid test flakyness 2024-12-29 21:23:04 +00:00
Claudio Ortolina 6427710029 Enable sorting options in collection view 2024-12-29 15:47:37 +00:00
Claudio Ortolina 1a0e505e51 Rework error messages for failed playcount/bio fetch 2024-12-27 17:57:36 +00:00
Claudio Ortolina 33a3ed548d Add test for https enforcement 2024-12-26 14:24:47 +00:00
Claudio Ortolina fc0120e5fc Revert "Template host in verification tests"
This reverts commit d65a2223db.
2024-12-25 19:57:27 +00:00
Claudio Ortolina d65a2223db Template host in verification tests 2024-12-25 19:54:23 +00:00
Claudio Ortolina 084ec04079 Add prod tests for cover URLs 2024-12-22 22:20:29 +00:00
Claudio Ortolina 97f26e0cd2 Serve covers under API namespace as well 2024-12-22 22:15:24 +00:00
Claudio Ortolina c92e7cc76a Add HURL production test suite 2024-12-22 18:50:30 +00:00
Claudio Ortolina f1af38606a Protect API behind a bearer token 2024-12-22 18:32:04 +00:00
Claudio Ortolina cf3761ca79 Fold RequireLogin plug into Auth module 2024-12-22 16:12:31 +00:00
Claudio Ortolina 341d276db5 Include artists and cover in latest record JSON 2024-12-22 15:55:41 +00:00
Claudio Ortolina 53e8d88b6a Rename auth_password -> login_password 2024-12-21 14:57:44 +00:00
Claudio Ortolina 4f456322fc Bootstrap the /api namespace 2024-12-21 14:38:39 +00:00
Claudio Ortolina 9dce1cacb9 Where possible, use built-in JSON instead of Jason
Note that it's not possible to replace any call where we encode and
pretty print, as JSON doesn't have such functionality.
2024-12-19 20:18:09 +00:00
Claudio Ortolina 53b89dc329 Extract Artists context 2024-12-18 11:12:06 +00:00
Claudio Ortolina 019d2fb7f2 Reduce size of test data in stats test
Test is equally effective and a few times faster.
2024-12-15 18:57:48 +03:00
Claudio Ortolina e4fe4e7f4b Cache images for 24 hours 2024-12-15 12:09:29 +03:00
Claudio Ortolina 6660d195e4 Decrease visible records per page
After months of usage, I rarely paginate the list, so it's not necessary
to load 100 at a time. 20 is enough.

By matching 20 records with a 20 pool size, we should keep the repo
queue time to a minimum.
2024-12-15 11:15:46 +03:00
Claudio Ortolina 3fbd6ba1bf Use release and release group fixtures with names everywhere 2024-12-14 23:52:09 +03:00
Claudio Ortolina 4ede4e3736 Add test for importing a record from scrobble activity 2024-12-14 23:41:39 +03:00
Claudio Ortolina a19d42ae30 Add more fixtures for release groups and releases 2024-12-14 23:24:21 +03:00
Claudio Ortolina 632f5c4661 Include album names in mb fixtures 2024-12-14 23:19:14 +03:00
Claudio Ortolina 2fbe9db016 Refactor test to extract data dependencies 2024-12-14 17:16:55 +03:00
Claudio Ortolina f7045a9f14 Extend testing of artist page 2024-12-13 22:25:06 +03:00