(entry1, entry2)
| 379 | } |
| 380 | |
| 381 | function 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 | |
| 391 | function editPostPublishAndDuplicate(entry1, entry2) { |
| 392 | goToEntry(entry1); |
no test coverage detected