Ghost/test/e2e-api/admin
Simon Backx b9646cceb1
Updated members API to return subscriptions' offers from the offer_id (#14515)
refs https://github.com/TryGhost/Team/issues/1520

**Changes in members repo**

Bumped to `5.12.0`, with the following changes:

- Compare differences via https://github.com/TryGhost/Members/compare/%40tryghost/members-api%405.11.1...%40tryghost/members-api%405.12.0
- Instead of doing the matching of the offers and subscriptions by looking at the offer redemptions, we can now look at the offer_id from subscriptions.
- This also fixes an issue where we don't attach the offer object to subscriptions in the members' browse method
- Updated browse behaviour to match the read behaviour of members (product relation needs to get loaded because it is missing in member.products if the subscription is expired).

**Tests**
- Includes test to see if the API correctly returns the offer object when fetching one or multiple members
- Check if the return format is the same for the read, edit and browse members admin API endpoints (offer was missing in subscriptions)
- Snapshot files have been updated because now the offer is returned in subscriptions (content length increased)
2022-04-21 12:06:06 +02:00
..
__snapshots__ Updated members API to return subscriptions' offers from the offer_id (#14515) 2022-04-21 12:06:06 +02:00
actions.test.js Aliased canary endpoints to point to non-versioned URLs 2022-03-14 21:22:54 +13:00
config.test.js 🐛 Fixed config API not returning boolean 2022-01-20 18:25:41 +02:00
custom-theme-settings.test.js Fixed filename casing in canary API 2022-03-24 17:25:53 +00:00
db.test.js Renamed testUtils.startGhost to localUtils.startGhost 2021-11-22 21:56:32 +13:00
email-preview.test.js Fixed filename casing in canary API 2022-03-24 17:25:53 +00:00
emails.test.js Added missing e2e emails API browse & retry tests 2022-03-28 17:32:58 +01:00
files.test.js Renamed testUtils.startGhost to localUtils.startGhost 2021-11-22 21:56:32 +13:00
images.test.js Renamed testUtils.startGhost to localUtils.startGhost 2021-11-22 21:56:32 +13:00
integrations.test.js Added serializer for integrations.destroy 2022-03-22 13:52:32 +00:00
invites.test.js Renamed testUtils.startGhost to localUtils.startGhost 2021-11-22 21:56:32 +13:00
key-authentication.test.js Fixed filename casing in canary API 2022-03-24 17:25:53 +00:00
labels.test.js Added expectEmptyBody assertions to e2e framework 2022-03-31 18:56:05 +01:00
legacy-members.test.js Added mrr column to subscriptions (#14448) 2022-04-12 11:02:18 +02:00
mail.test.js Added missing e2e mail API retry test 2022-03-28 17:32:57 +01:00
media.test.js Renamed testUtils.startGhost to localUtils.startGhost 2021-11-22 21:56:32 +13:00
members-importer.test.js Moved members importer tests to its own test file 2022-02-15 11:16:43 +01:00
members-stripe-connect.test.js Added expectEmptyBody assertions to e2e framework 2022-03-31 18:56:05 +01:00
members.test.js Updated members API to return subscriptions' offers from the offer_id (#14515) 2022-04-21 12:06:06 +02:00
newsletters.test.js Added the newsletter read endpoint (#14520) 2022-04-21 09:59:44 +02:00
notifications.test.js Renamed testUtils.startGhost to localUtils.startGhost 2021-11-22 21:56:32 +13:00
oembed.test.js 🐛 Fixes oembed bookmark with whitespaces 2021-12-01 15:58:09 +01:00
offers.test.js Added e2e tests for offers API (#14335) 2022-03-24 13:41:48 +01:00
pages.test.js Added tiers data for posts with non tiers visibility 2022-03-04 18:22:59 +05:30
posts.test.js Added the newsletter_id query string to the post edit API route (#14449) 2022-04-13 15:27:43 +02:00
products.test.js Added tests for creating product benefits without name (#14217) 2022-03-10 10:10:35 +01:00
redirects.test.js Added serializer for redirects.upload 2022-03-22 13:52:32 +00:00
roles.test.js Renamed testUtils.startGhost to localUtils.startGhost 2021-11-22 21:56:32 +13:00
session.test.js Added expectEmptyBody assertions to e2e framework 2022-03-31 18:56:05 +01:00
settings-files.test.js Added serializer for missing settings endpoints 2022-03-22 13:52:32 +00:00
settings.test.js Added expectEmptyBody assertions to e2e framework 2022-03-31 18:56:05 +01:00
site.test.js Moved site.test.js from regression to e2e-api 2022-02-11 16:24:00 +00:00
slugs.test.js Renamed testUtils.startGhost to localUtils.startGhost 2021-11-22 21:56:32 +13:00
snippets.test.js Added expectEmptyBody assertions to e2e framework 2022-03-31 18:56:05 +01:00
stats.test.js Added MRR stats service and endpoint (#14427) 2022-04-08 09:18:04 +02:00
tags.test.js Renamed testUtils.startGhost to localUtils.startGhost 2021-11-22 21:56:32 +13:00
themes.test.js Added serializer for themes.destroy 2022-03-22 13:52:32 +00:00
tiers.test.js Support tier visibility editing Allowed Tiers Admin API to set visibility 2022-03-07 14:46:42 +00:00
users.test.js Fixed error when editing user with empty roles data 2022-03-10 17:29:30 +00:00
utils.js Added alias for non-versioned API endpoints 2022-03-03 20:21:22 +13:00
webhooks.test.js Renamed testUtils.startGhost to localUtils.startGhost 2021-11-22 21:56:32 +13:00