(entry)
| 355 | } |
| 356 | |
| 357 | function 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 | |
| 366 | function editPostAndPublish(entry1, entry2) { |
| 367 | goToEntry(entry1); |
no test coverage detected