0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-20 22:42:53 -05:00
ghost/apps/admin-x-settings/test/utils/responses/recommendations.json
Sag 96065f9c94
Added more acceptance tests for Recommendation settings (#18696)
closes https://github.com/TryGhost/Product/issues/3955

- also, moved recommendations code to the "membership" folder for
consistency with the UI
- also, renamed "yarn test:slowmo" to "yarn test:acceptance:slowmo" for
consistency in the naming
- also, removed "limit: 1" when checking whether a recommendation URL
already exists. The limit defaults to 5 on the API side, and allowing
more than 1 result will lead to a more thorough check
2023-10-18 18:56:34 +00:00

46 lines
1.5 KiB
JSON

{
"recommendations": [
{
"id": "652d788df9278a47d6963d1f",
"title": "Recommendation 1 title",
"description": "Recommendation 1 description",
"excerpt": "Recommendation 1 excerpt",
"featured_image": "https://recommendation1.com/image.jpg",
"favicon": "https://recommendation1.com/favicon.ico",
"url": "https://recommendation1.com/",
"one_click_subscribe": "true",
"created_at": "2023-10-28T20:00:00.000Z",
"updated_at": "2023-10-30T20:00:00.000Z",
"count": {
"clicks": 0,
"subscribers": 3
}
},
{
"id": "652d782ef9278a47d6963d1e",
"title": "Recommendation 2 title",
"description": "Recommendation 2 description",
"excerpt": "Recommendation 2 excerpt",
"featured_image": "https://recommendation2.com/image.jpg",
"favicon": "https://recommendation2.com/favicon.ico",
"url": "https://recommendation2.com/",
"one_click_subscribe": "false",
"created_at": "2023-10-28T20:00:00.000Z",
"updated_at": "2023-10-30T20:00:00.000Z",
"count": {
"clicks": 10,
"subscribers": 0
}
}
],
"meta": {
"pagination": {
"page": 1,
"pages": 1,
"limit": 5,
"total": 2,
"prev": null,
"next": null
}
}
}