feat: workflow unpublished entry (#2914)
* feat: workflow unpublished entry * fix: post rebase fix - load unpublished entry after unpublish * feat: change unpublish button to dropdown * test(cypress): add unpublish entry cypress test
This commit is contained in:
@ -18,6 +18,7 @@ import {
|
||||
validateObjectFieldsAndExit,
|
||||
validateNestedObjectFieldsAndExit,
|
||||
validateListFieldsAndExit,
|
||||
unpublishEntry,
|
||||
} from '../utils/steps';
|
||||
import { setting1, setting2, workflowStatus, editorStatus } from '../utils/constants';
|
||||
|
||||
@ -123,4 +124,15 @@ describe('Test Backend Editorial Workflow', () => {
|
||||
goToWorkflow();
|
||||
assertWorkflowStatus(entry1, workflowStatus.ready);
|
||||
});
|
||||
|
||||
it('can unpublish an existing entry', () => {
|
||||
// first publish an entry
|
||||
login();
|
||||
createPostAndExit(entry1);
|
||||
goToWorkflow();
|
||||
updateWorkflowStatus(entry1, workflowStatus.draft, workflowStatus.ready);
|
||||
publishWorkflowEntry(entry1);
|
||||
// then unpublish it
|
||||
unpublishEntry(entry1);
|
||||
});
|
||||
});
|
||||
|
Reference in New Issue
Block a user