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:
Bartholomew
2019-11-26 11:14:04 +01:00
committed by Erez Rokah
parent 465f463959
commit 41bb9aac0d
10 changed files with 121 additions and 5 deletions

View File

@ -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);
});
});