0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-03-11 02:12:21 -05:00
ghost/test/regression
Hannah Wolfe fa91c6c954
🐛 Moved access to an API property (#11967)
closes #11574

- the current implementation of the access property has it frontend only, and wired up only in one place
- this leaves it only available in a handful of places, e.g. can't use it in a post loop or get helper
- the current implementation also fails logically if the html content of the post is blank

This fix moves the behaviour to the API

- this ensures the field is always available no matter what context you are in
- it also updates the logic to use the same membersHasAccess logic as is used to gate the post, so it's always correct

TODO: should reconsider the location of this code
2020-06-30 14:46:46 +01:00
..
api 🐛 Moved access to an API property (#11967) 2020-06-30 14:46:46 +01:00
exporter Updated var declarations to const/let and no lists 2020-04-29 16:51:13 +01:00
importer Fixed importer mapping for renamed default_locale, active_timezone, ghost_* settings 2020-06-24 14:19:52 +12:00
migrations Fixed broken regression tests from #11861 2020-06-02 16:20:57 +02:00
models Updated Settings.populateDefaults() to account for available columns 2020-06-29 13:22:10 +00:00
site 🐛 Fixed custom redirects for subdirectory setups 2020-06-16 10:24:13 +02:00
update-check Updated var declarations to const/let and no lists 2020-04-29 16:51:13 +01:00
README.md Move tests from core to root (#11700) 2020-03-30 16:26:47 +01:00

Regression Tests

This folder should contain packages which we test in a cron job once per day. These tests should ensure that we don't break Ghost.

The goal is that most of these packages use Ghost's API's to test behaviours, otherwise transform the tests into unit tests.