mirror of
https://github.com/strapi/strapi.git
synced 2025-11-02 10:55:37 +00:00
fix: rw content type tests contains for postgres
This commit is contained in:
parent
e29fa46749
commit
bc03369e29
@ -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 });
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user