Ghost/apps/comments-ui/test/e2e
Kevin Ansfield 92a8a53a95
Added lazy-loading of admin auth in Comments UI (#19799)
closes ENG-711

When an Admin is authenticated in Comments-UI we only add moderation options to the displayed comments so we don't need to pre-emptively load the `admin-auth` iframe and make the `/ghost/api/admin/users/me/` request until some comments are actually visible.

- used `state.comments.length` property to defer rendering of the admin auth frame until comments have been fetched (after box is scrolled into view) and the count is > 0
2024-03-05 15:57:20 +00:00
..
actions.test.ts 🎨 Admin X - Offers (#19520) 2024-01-25 12:41:54 +00:00
auth-frame.test.ts Added lazy-loading of admin auth in Comments UI (#19799) 2024-03-05 15:57:20 +00:00
cta.test.ts
editor.test.ts Converted Comments-UI App to TypeScript and React hooks (#17760) 2023-08-18 13:30:59 +00:00
lazy-loading.test.ts Added lazy-loading of admin auth in Comments UI (#19799) 2024-03-05 15:57:20 +00:00
options.test.ts Converted Comments-UI App to TypeScript and React hooks (#17760) 2023-08-18 13:30:59 +00:00
pagination.test.ts Fixed comments MockedApi and tests 2024-02-28 07:38:22 +07:00