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

Function publishAndCreateNewEntryInEditor

cypress/utils/steps.js:240–245  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

238}
239
240function publishAndCreateNewEntryInEditor() {
241 selectDropdownItem('Publish', publishTypes.publishAndCreateNew);
242 assertNotification(notifications.published);
243 cy.url().should('eq', `http://localhost:8080/#/collections/posts/new`);
244 cy.get('[id^="title-field"]').should('have.value', '');
245}
246
247function publishAndDuplicateEntryInEditor(entry) {
248 selectDropdownItem('Publish', publishTypes.publishAndDuplicate);

Calls 3

selectDropdownItemFunction · 0.85
assertNotificationFunction · 0.85
getMethod · 0.80

Tested by

no test coverage detected