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
exporter
importer 🐛 Fixed import for tag without slugs that belongs to a post (#10917) 2019-07-16 12:01:44 +02:00
migrations
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
README.md

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.