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:
Marc 2023-04-25 16:21:13 +02:00 committed by GitHub
parent c55bc192b2
commit e0ce4352c9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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,