diff --git a/packages/core/strapi/tests/api/basic-dp-compo.test.e2e.js b/packages/core/strapi/tests/api/basic-dp-compo.test.e2e.js index 95d8a60473..dc7b2fc20e 100644 --- a/packages/core/strapi/tests/api/basic-dp-compo.test.e2e.js +++ b/packages/core/strapi/tests/api/basic-dp-compo.test.e2e.js @@ -163,9 +163,7 @@ describe('Core API - Basic + compo + draftAndPublish', () => { describe('database state', () => { test('components have been removed from the database', async () => { - const dbComponents = await strapi.db - .query('default.compo') - .findMany({ name: 'compo name updated' }); + const dbComponents = await strapi.db.query('default.compo').findMany({}); expect(dbComponents).toHaveLength(0); }); });