Ghost/test/e2e-api/admin
Rishabh eac732f620 Added tiers data for posts with non tiers visibility
refs https://github.com/TryGhost/Team/issues/1004

The `tiers` column for a post/page only contained data if its visibility is set to `tiers`, otherwise its empty. This is because originally the purpose of `tiers` column on `post` was to capture specific tiers with access to post.
The best way to ensure a consistent behavior for `tiers` column data on post is to update it to always contain list of all `tiers` that have access to post, and not just when the visibility is `tiers`. This means the value is set to all tiers when visibility is one of public|members, and only paid tiers when visibility is `paid`.  This change also allows on frontend to get all relevant `tiers` information for a post locally within post context instead of relying on additional information from outside.

This change -

- updates the output serializer for post/page to add all desired tiers manually in case of visibility is not `tiers`
- updates tests
2022-03-04 18:22:59 +05:30
..
__snapshots__ Switched products.visible for products.visibility (#14264) 2022-03-04 11:07:38 +00:00
actions.test.js Renamed testUtils.startGhost to localUtils.startGhost 2021-11-22 21:56:32 +13:00
config.test.js 🐛 Fixed config API not returning boolean 2022-01-20 18:25:41 +02:00
custom_theme_settings.test.js Removed forceStart in theme e2e tests 2021-11-22 14:51:23 +04:00
db.test.js Renamed testUtils.startGhost to localUtils.startGhost 2021-11-22 21:56:32 +13:00
email_preview.test.js Renamed testUtils.startGhost to localUtils.startGhost 2021-11-22 21:56:32 +13:00
emails.test.js Renamed testUtils.startGhost to localUtils.startGhost 2021-11-22 21:56:32 +13: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 Renamed testUtils.startGhost to localUtils.startGhost 2021-11-22 21:56:32 +13:00
invites.test.js Renamed testUtils.startGhost to localUtils.startGhost 2021-11-22 21:56:32 +13:00
key_authentication.test.js Renamed testUtils.startGhost to localUtils.startGhost 2021-11-22 21:56:32 +13:00
labels.test.js Renamed testUtils.startGhost to localUtils.startGhost 2021-11-22 21:56:32 +13:00
legacy-members.test.js Enabled the last_seen_at flag in the legacy member tests 2022-02-24 17:41:38 +01:00
mail.test.js Renamed testUtils.startGhost to localUtils.startGhost 2021-11-22 21:56:32 +13: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.test.js Renamed e2e framework date matchers 2022-03-01 18:17:13 +07: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
pages.test.js Added tiers data for posts with non tiers visibility 2022-03-04 18:22:59 +05:30
posts.test.js Added tiers data for posts with non tiers visibility 2022-03-04 18:22:59 +05:30
products.test.js Added mockLabsDisabled to e2e framework 2022-02-10 12:10:31 +00:00
redirects.test.js Removed unnecessary fixture setup in redirects e2e test 2021-11-29 17:53:33 +04:00
roles.test.js Renamed testUtils.startGhost to localUtils.startGhost 2021-11-22 21:56:32 +13:00
settings.test.js Switched AMP to be 'off' by default in all new Ghost instances (#13907) 2022-01-14 18:55:48 +02: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 Renamed testUtils.startGhost to localUtils.startGhost 2021-11-22 21:56:32 +13:00
tags.test.js Renamed testUtils.startGhost to localUtils.startGhost 2021-11-22 21:56:32 +13:00
themes.test.js Removed ancient Casper fixture 2022-01-24 12:24:51 +00:00
tiers.test.js Renamed e2e framework date matchers 2022-03-01 18:17:13 +07:00
users.test.js Renamed testUtils.startGhost to localUtils.startGhost 2021-11-22 21:56:32 +13: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