chore: todo tests

This commit is contained in:
Marc-Roig 2025-03-12 11:47:51 +01:00
parent 4e64ec6cec
commit 2f08d92b24
No known key found for this signature in database
GPG Key ID: FB4E2C43A0BEE249
2 changed files with 13 additions and 0 deletions

View File

@ -74,6 +74,7 @@ const load = async (uid: UID.ContentType, { oldVersions }: LoadContext) => {
}
// If it's a self referencing relation, there is no need to sync any relation
// The order will already be handled as both sides are inside the same content type
if (model.uid === uid) {
continue;
}

View File

@ -1,3 +1,15 @@
/**
* TODO:
* # Bidirectional relations
*
* Testing bidirectional relations is a bit tricky with our current setup on the api test.
* As soon as we can test it we should implement:
* - Bidirectional relations targeting the same content type (self referencing)
* - Can connect, disconnect, reorder
* - Can publish and discard
* - Test inverse order of relations is preserved when publishing.
*
*/
import { createTestBuilder } from 'api-tests/builder';
import { createStrapiInstance } from 'api-tests/strapi';
import { createContentAPIRequest } from 'api-tests/request';