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

Function editPostPublishAndCreateNew

cypress/utils/steps.js:381–389  ·  view source on GitHub ↗
(entry1, entry2)

Source from the content-addressed store, hash-verified

379}
380
381function editPostPublishAndCreateNew(entry1, entry2) {
382 goToEntry(entry1);
383 cy.contains('button', 'Delete entry');
384 cy.contains('span', 'Published');
385
386 populateEntry(entry2, () => publishEntry({ createNew: true }));
387 cy.url().should('eq', `http://localhost:8080/#/collections/posts/new`);
388 cy.get('[id^="title-field"]').should('have.value', '');
389}
390
391function editPostPublishAndDuplicate(entry1, entry2) {
392 goToEntry(entry1);

Calls 4

goToEntryFunction · 0.85
populateEntryFunction · 0.85
publishEntryFunction · 0.85
getMethod · 0.80

Tested by

no test coverage detected