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

Function publishAndCreateNewEntryInEditor

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

Source from the content-addressed store, hash-verified

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

Calls 3

selectDropdownItemFunction · 0.85
assertNotificationFunction · 0.85
getMethod · 0.80

Tested by

no test coverage detected