feat: duplicate entry (#2956)
This commit is contained in:
committed by
Shawn Erquhart
parent
9ee5d4f66f
commit
d180bffb44
@ -19,8 +19,10 @@ import {
|
||||
validateNestedObjectFieldsAndExit,
|
||||
validateListFieldsAndExit,
|
||||
unpublishEntry,
|
||||
publishEntryInEditor,
|
||||
duplicateEntry,
|
||||
} from '../utils/steps';
|
||||
import { setting1, setting2, workflowStatus, editorStatus } from '../utils/constants';
|
||||
import { setting1, setting2, workflowStatus, editorStatus, publishTypes } from '../utils/constants';
|
||||
|
||||
const entry1 = {
|
||||
title: 'first title',
|
||||
@ -135,4 +137,12 @@ describe('Test Backend Editorial Workflow', () => {
|
||||
// then unpublish it
|
||||
unpublishEntry(entry1);
|
||||
});
|
||||
|
||||
it('can duplicate an existing entry', () => {
|
||||
login();
|
||||
createPost(entry1);
|
||||
updateWorkflowStatusInEditor(editorStatus.ready);
|
||||
publishEntryInEditor(publishTypes.publishNow);
|
||||
duplicateEntry(entry1);
|
||||
});
|
||||
});
|
||||
|
Reference in New Issue
Block a user