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

Function createPostPublishAndDuplicate

cypress/utils/steps.js:357–364  ·  view source on GitHub ↗
(entry)

Source from the content-addressed store, hash-verified

355}
356
357function createPostPublishAndDuplicate(entry) {
358 newPost();
359 populateEntry(entry, () => publishEntry({ duplicate: true }));
360 cy.url().should('eq', `http://localhost:8080/#/collections/posts/new`);
361 cy.get('[id^="title-field"]').should('have.value', entry.title);
362
363 exitEditor();
364}
365
366function editPostAndPublish(entry1, entry2) {
367 goToEntry(entry1);

Calls 5

newPostFunction · 0.85
populateEntryFunction · 0.85
publishEntryFunction · 0.85
exitEditorFunction · 0.85
getMethod · 0.80

Tested by

no test coverage detected