Ghost/core/test/regression
Naz Gargol 9dcc17a017
🐛 Fixed import for tag without slugs that belongs to a post (#10917)
closes #10785

- The behavior for tags will now be similar to posts' one described in the docs
- "The only strictly required field when importing posts is the title. Ghost will automatically generate slugs and set every other field to the default or empty."
- The breaking change was introduced with: 68d8154d4f (diff-e712df50c0dc7cf33746eeff0564003cR97) (assumed there's always slug in the imported object which is not true)
- Added originalIdMap to the importer base class to track id
substitution so it can be used when dealing with relational resource
updates
- Removed explicit use of 'this.stripProperties(['id']);' in
beforeImport of base class because we need to assign and remove the id
property in the same place to track this change
- Only calling 'this.stripProperties(['id']);' in
settings/trusted_domain imports as the method won't be called otherwise
- Expanded regression tests with new supported import case
2019-07-16 12:01:44 +02:00
..
api Replaced v1 for v4 uuids (#10871) 2019-07-15 14:01:02 +08: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 import for tag without slugs that belongs to a post (#10917) 2019-07-16 12:01:44 +02:00
migrations Added notification access persmission for users of Editor role 2019-04-18 13:02:23 +02:00
models Update Test & linting packages (major) (#10858) 2019-07-05 13:40:43 +02:00
site 🐛 Fixed infinite redirect for amp when disabled 2019-07-08 17:32:12 +01:00
update-check Fixed regression test 2019-05-02 21:04:16 +02: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.