Ghost/core/test/regression
Katharina Irrgang 04c60b4ce1
🐛 Fixed private blogging getting enabled when saving any setting (#10576)
no issue

- Reported here: https://forum.ghost.org/t/in-version-2-16-3-found-bug/6065/3

---

Admin Client sends false or true booleans for `is_private` key.

The settings table has two columns "key" and "value". And "value" is always type TEXT.

If you pass value=false, the db will transform this value into "0".
`settingsCache.get('is_private')` is then always true, even though the value is meant to be false.

We should add a migration in v3 and normalize all setting values to ensure consistent database values. Furthermore, we should improve the handling around settings values in general.

For now, we protect parsing values from DB, which we anyway need to transform the values into the correct data type, because we always save strings. This will protect values being stored as "false" or "1" or whatever.
2019-03-06 12:56:26 +01:00
..
api 🐛 Fixed private blogging getting enabled when saving any setting (#10576) 2019-03-06 12:56:26 +01:00
apps/subscribers Separated test env into: acceptance, regression and unit tests (#10411) 2019-01-22 17:54:50 +01:00
exporter Separated test env into: acceptance, regression and unit tests (#10411) 2019-01-22 17:54:50 +01:00
importer Fixed regression tests for importer 2019-02-26 11:58:37 +07:00
migrations Added members permission migrations 2019-02-26 15:43:36 +07:00
models 🐛 Fixed plaintext field not being cleared when post body is removed 2019-03-04 14:03:44 +00:00
site 🐛 Fixed empty amp page 2019-02-27 17:56:09 +01:00
update-check Separated test env into: acceptance, regression and unit tests (#10411) 2019-01-22 17:54:50 +01:00
README.md Separated test env into: acceptance, regression and unit tests (#10411) 2019-01-22 17:54:50 +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.