(entry1)
| 399 | } |
| 400 | |
| 401 | function duplicatePostAndPublish(entry1) { |
| 402 | goToEntry(entry1); |
| 403 | cy.contains('button', 'Delete entry'); |
| 404 | selectDropdownItem('Published', 'Duplicate'); |
| 405 | publishEntry(); |
| 406 | |
| 407 | cy.url().should( |
| 408 | 'eq', |
| 409 | `http://localhost:8080/#/collections/posts/entries/1970-01-01-${entry1.title |
| 410 | .toLowerCase() |
| 411 | .replace(/\s/, '-')}-1`, |
| 412 | ); |
| 413 | } |
| 414 | |
| 415 | function updateExistingPostAndExit(fromEntry, toEntry) { |
| 416 | goToWorkflow(); |
no test coverage detected