fix: rw content type tests contains for postgres

This commit is contained in:
Marc-Roig 2023-05-19 11:33:50 +02:00
parent e29fa46749
commit bc03369e29
No known key found for this signature in database
GPG Key ID: FB4E2C43A0BEE249

View File

@ -285,7 +285,7 @@ describeOnCondition(edition === 'EE')('Review workflows', () => {
});
test('Should list workflows filtered by CT', async () => {
const workflows = await getWorkflows({ contentTypes: { $contains: [productUID] } });
const workflows = await getWorkflows({ contentTypes: productUID });
expect(workflows).toHaveLength(1);
expect(workflows[0]).toMatchObject({ id: workflow2.id });
@ -299,8 +299,7 @@ describeOnCondition(edition === 'EE')('Review workflows', () => {
data: { contentTypes: [`${productUID}-2`] },
});
// FIXME: This filter should be { $contains: [productUID] }
const workflows = await getWorkflows({ contentTypes: { $contains: [`"${productUID}"`] } });
const workflows = await getWorkflows({ contentTypes: productUID });
expect(workflows).toHaveLength(1);
expect(workflows[0]).toMatchObject({ id: workflow2.id });