0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-27 22:49:56 -05:00
ghost/apps/comments-ui/test/utils
Kevin Ansfield 04f337e085 Fixed comments-ui tests not properly mocking actions on replies
no issue

- `MockedApi.browseComments` only worked on top-level comments, it couldn't find replies when passed `filter:'id:123'` such is used when liking and editing replies
- fixed missing get handler for fetching single comment via Admin API (used after showing a hidden comment)
- added `flattenComments` and `findCommentById` helper functions to facilitate easier finding of a comment or reply within the nested structure
- added tests for liking and hiding replies
2024-11-26 18:34:02 +00:00
..
e2e.ts Refactored comments-ui admin moderation tests 2024-11-26 14:30:23 +00:00
fixtures.ts Extracted comment member name and initial helper functions 2024-10-15 07:53:57 +01:00
MockedApi.ts Fixed comments-ui tests not properly mocking actions on replies 2024-11-26 18:34:02 +00:00