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

Function publishAndDuplicateEntryInEditor

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

Source from the content-addressed store, hash-verified

242}
243
244function publishAndDuplicateEntryInEditor(entry) {
245 selectDropdownItem('Publish', publishTypes.publishAndDuplicate);
246 assertNotification(notifications.published);
247 cy.url().should('eq', `http://localhost:8080/#/collections/posts/new`);
248 cy.get('[id^="title-field"]').should('have.value', entry.title);
249}
250
251function selectDropdownItem(label, item) {
252 cy.contains('[role="button"]', label).as('dropDownButton');

Calls 3

selectDropdownItemFunction · 0.85
assertNotificationFunction · 0.85
getMethod · 0.80

Tested by

no test coverage detected