0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-10 23:36:14 -05:00
ghost/test/e2e-api/admin/__snapshots__
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
..
emails.test.js.snap Added the emails-newsletters relation (#14434) 2022-04-08 16:16:23 +02:00
labels.test.js.snap Added expectEmptyBody assertions to e2e framework 2022-03-31 18:56:05 +01:00
mail.test.js.snap Added missing e2e mail API retry test 2022-03-28 17:32:57 +01:00
members-stripe-connect.test.js.snap Added expectEmptyBody assertions to e2e framework 2022-03-31 18:56:05 +01:00
members.test.js.snap Updated members API to return subscriptions' offers from the offer_id (#14515) 2022-04-21 12:06:06 +02:00
newsletters.test.js.snap Added the newsletter read endpoint (#14520) 2022-04-21 09:59:44 +02:00
offers.test.js.snap Added e2e tests for offers API (#14335) 2022-03-24 13:41:48 +01:00
session.test.js.snap Added expectEmptyBody assertions to e2e framework 2022-03-31 18:56:05 +01:00
settings.test.js.snap Updated settings API snapshot for new labs flag 2022-04-20 16:29:51 +01:00
site.test.js.snap
snippets.test.js.snap Added expectEmptyBody assertions to e2e framework 2022-03-31 18:56:05 +01:00
stats.test.js.snap Added MRR stats service and endpoint (#14427) 2022-04-08 09:18:04 +02:00
tiers.test.js.snap Fixed tiers test with correct visibility (#14280) 2022-03-08 18:00:30 +05:30