0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-10 23:36:14 -05:00
ghost/apps/comments-ui/test/e2e
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
..
actions.test.ts Added highlight animation when scrolling to replied-to comment (#21781) 2024-12-05 17:46:16 +00:00
admin-moderation.test.ts Fixed comment count in comments-ui when logged in as admin 2024-12-10 18:59:49 +00:00
autoclose-forms.test.ts Wired up Admin Comment Endpoints to UI (#21661) 2024-11-21 10:52:36 +00:00
content.test.ts Prevented top-level comment input from closing when it has text (#21795) 2024-12-09 13:42:24 +00:00
cta.test.ts Moved old comment tests to Playwright (#17750) 2023-08-17 12:47:08 +02:00
editor.test.ts Prevented top-level comment input from closing when it has text (#21795) 2024-12-09 13:42:24 +00:00
labs.test.ts Added feature flagging system for Comments UI (#20984) 2024-09-12 18:36:37 +09:00
lazy-loading.test.ts Added lazy-loading of admin auth in Comments UI (#19799) 2024-03-05 15:57:20 +00:00
main-form.test.ts Prevented top-level comment input from closing when it has text (#21795) 2024-12-09 13:42:24 +00:00
options.test.ts Ensured replies remain visible when parent comment is being edited (#21756) 2024-12-02 22:17:15 +00:00
pagination.test.ts Moved pagination button back to top in comments (#20379) 2024-06-13 09:10:30 +07:00