mirror of
https://github.com/strapi/strapi.git
synced 2025-09-02 13:23:12 +00:00
Update api-tests/core/admin/ee/review-workflows.test.api.js
Co-authored-by: Jamie Howard <48524071+jhoward1994@users.noreply.github.com>
This commit is contained in:
parent
c55bc192b2
commit
e0ce4352c9
@ -503,8 +503,8 @@ describeOnCondition(edition === 'EE')('Review workflows', () => {
|
||||
test('When content exists in a review stage and this stage is deleted, the content should be moved to the nearest available stage', async () => {
|
||||
const products = await findAll(productUID);
|
||||
|
||||
// Move the first half of the entries to the last stage,
|
||||
// and the second half to the first stage
|
||||
// Move half of the entries to the last stage,
|
||||
// and the other half to the first stage
|
||||
await mapAsync(products.results, async (entity) =>
|
||||
updateEntry(productUID, entity.id, {
|
||||
[ENTITY_STAGE_ATTRIBUTE]: entity.id % 2 ? defaultStage.id : secondStage.id,
|
||||
|
Loading…
x
Reference in New Issue
Block a user