0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-03 23:00:14 -05:00
ghost/apps/comments-ui/test/utils
Kevin Ansfield 0f9449137f Fixed comment count in comments-ui when logged in as admin
closes https://linear.app/ghost/issue/PLG-297

- we were setting the comment count Admin API browse comments response meta pagination data which will never be correct because it only counts top-level comments for pagination purposes
- we have a public comment counts endpoint that is already fetched, there's no need to override that when using the Admin API because the overall count doesn't change across API's, even when the Admin API includes hidden comments because those don't impact the visible count
- updated test setup so the title and count is shown so it can be asserted against
- updated mocked api to correctly return count of all published comments+replies
2024-12-10 18:59:49 +00:00
..
e2e.ts Fixed comment likes being incorrect when logged in as an Admin (#21833) 2024-12-10 14:44:15 +00:00
fixtures.ts Extracted comment member name and initial helper functions 2024-10-15 07:53:57 +01:00
MockedApi.ts Fixed comment count in comments-ui when logged in as admin 2024-12-10 18:59:49 +00:00