0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-03 23:00:14 -05:00
ghost/test/e2e-api/admin/__snapshots__
Hannah Wolfe 0ef5a5c97a
Fixed members connect endpoint returning JSON
refs: https://github.com/TryGhost/Toolbox/issues/245
refs: https://github.com/TryGhost/Team/issues/1360

- As a result of my changes in https://github.com/TryGhost/Ghost/commit/3bd4d098 the members connect endpoint had started returning JSON
- This is because the members connect endpoint relied on the old default behaviour of the serializer being to return no response, whereas now it does our default JSON response format
- I had written a tool to iterate over all endpoints and ensure that they all had explicit serializers before changing the default behaviour, but it missed this endpoint due to the snake case naming
- I have double checked and this was the only missed endpoint, the only other one was member_signin_urls.permissions but that was not a true endpoint and was removed in https://github.com/TryGhost/Ghost/commit/202696382
- Note: the snapshot file for this test was generated from running the test against https://github.com/TryGhost/Ghost/commit/e6b92aed9 - one commit before I added the new default behaviour.
  - Without the new serializer this test fails on main
  - With the new serialzier, this test passes again, showing the response format has gone back to what we expect
2022-03-24 17:09:23 +00:00
..
labels.test.js.snap Added labels test for empty browse response 2022-03-24 12:52:47 +00:00
members-stripe-connect.test.js.snap Fixed members connect endpoint returning JSON 2022-03-24 17:09:23 +00:00
members.test.js.snap Fixed missing product name in API response when editing creating/editing subscriptions (#14339) 2022-03-18 16:06:38 +00: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 tests for session API 2022-03-18 13:13:16 +00:00
settings.test.js.snap Added dashboardV5 feature flag 2022-03-21 16:56:34 +01:00
site.test.js.snap Moved site.test.js from regression to e2e-api 2022-02-11 16:24:00 +00:00
tiers.test.js.snap Fixed tiers test with correct visibility (#14280) 2022-03-08 18:00:30 +05:30