MCPcopy Create free account
hub / github.com/decaporg/decap-cms / updateExistingPostAndExit

Function updateExistingPostAndExit

cypress/utils/steps.js:414–421  ·  view source on GitHub ↗
(fromEntry, toEntry)

Source from the content-addressed store, hash-verified

412}
413
414function updateExistingPostAndExit(fromEntry, toEntry) {
415 goToWorkflow();
416 cy.contains('h2', fromEntry.title).parent().click({ force: true });
417 populateEntry(toEntry);
418 exitEditor();
419 goToWorkflow();
420 cy.contains('h2', toEntry.title);
421}
422
423function unpublishEntry(entry) {
424 goToCollections();

Callers 2

open_authoring.jsFile · 0.90

Calls 3

goToWorkflowFunction · 0.85
populateEntryFunction · 0.85
exitEditorFunction · 0.85

Tested by

no test coverage detected